Dokumentacja platformy MLKitCommon
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zajęcia
Poniższe klasy są dostępne na całym świecie.
-
Model niestandardowy, który jest przechowywany zdalnie na serwerze i pobierany na urządzenie.
-
Model zapisany lokalnie na urządzeniu.
Deklaracja
Swift
class LocalModel : NSObject
-
Konfiguracje warunków pobierania modelu.
Deklaracja
Swift
class ModelDownloadConditions : NSObject, NSCopying
-
Zarządza modelami używanymi przez funkcje MLKit.
Deklaracja
Swift
class ModelManager : NSObject
-
Model, który jest przechowywany zdalnie na serwerze i pobierany na urządzenie.
Deklaracja
Swift
class RemoteModel : NSObject
-
Źródło modelu wskazujące, gdzie model jest hostowany zdalnie.
Deklaracja
Swift
class RemoteModelSource : NSObject
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eML Kit provides classes for managing models, including local and remote options, with \u003ccode\u003eLocalModel\u003c/code\u003e for on-device storage and \u003ccode\u003eRemoteModel\u003c/code\u003e for server-hosted models.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eModelManager\u003c/code\u003e handles model operations, while \u003ccode\u003eModelDownloadConditions\u003c/code\u003e allows configuration of download preferences.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomRemoteModel\u003c/code\u003e extends remote model capabilities for custom use cases, and \u003ccode\u003eRemoteModelSource\u003c/code\u003e specifies the location of remote models.\u003c/p\u003e\n"]]],[],null,["# MLKitCommon Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [CustomRemoteModel](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/CustomRemoteModel)\n\n `\n ` \n A custom model that is stored remotely on the server and downloaded to the device. \n\n #### Declaration\n\n Swift \n\n class CustomRemoteModel : /ml-kit/reference/swift/mlkitcommon/api/reference/Classes/RemoteModel\n\n- `\n ``\n ``\n `\n\n ### [LocalModel](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/LocalModel)\n\n `\n ` \n A model stored locally on the device. \n\n #### Declaration\n\n Swift \n\n class LocalModel : NSObject\n\n- `\n ``\n ``\n `\n\n ### [ModelDownloadConditions](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/ModelDownloadConditions)\n\n `\n ` \n Configurations for model downloading conditions. \n\n #### Declaration\n\n Swift \n\n class ModelDownloadConditions : NSObject, NSCopying\n\n- `\n ``\n ``\n `\n\n ### [ModelManager](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/ModelManager)\n\n `\n ` \n Manages models that are used by MLKit features. \n\n #### Declaration\n\n Swift \n\n class ModelManager : NSObject\n\n- `\n ``\n ``\n `\n\n ### [RemoteModel](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/RemoteModel)\n\n `\n ` \n A model that is stored remotely on the server and downloaded to the device. \n\n #### Declaration\n\n Swift \n\n class RemoteModel : NSObject\n\n- `\n ``\n ``\n `\n\n ### [RemoteModelSource](/ml-kit/reference/swift/mlkitcommon/api/reference/Classes/RemoteModelSource)\n\n `\n ` \n A model source indicating where the model is hosted remotely. \n\n #### Declaration\n\n Swift \n\n class RemoteModelSource : NSObject"]]