MLKitCommon 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
-
声明
Swift
class LocalModel : NSObject
-
声明
Swift
class ModelDownloadConditions : NSObject, NSCopying
-
声明
Swift
class ModelManager : NSObject
-
声明
Swift
class RemoteModel : NSObject
-
声明
Swift
class RemoteModelSource : NSObject
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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"]]