MLKitCommon 架構參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
-
-
聲明
Swift
class LocalModel : NSObject
-
聲明
Swift
class ModelDownloadConditions : NSObject, NSCopying
-
聲明
Swift
class ModelManager : NSObject
-
聲明
Swift
class RemoteModel : NSObject
-
聲明
Swift
class RemoteModelSource : NSObject
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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"]]