MLKitCommon Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
A custom model that is stored remotely on the server and downloaded to the device.
-
A model stored locally on the device.
Declaration
Objective-C
@interface
MLKLocalModel
:
NSObject
-
Configurations for model downloading conditions.
Declaration
Objective-C
@interface
MLKModelDownloadConditions
:
NSObject
<
NSCopying
>
-
Manages models that are used by MLKit features.
Declaration
Objective-C
@interface
MLKModelManager
:
NSObject
-
A model that is stored remotely on the server and downloaded to the device.
Declaration
Objective-C
@interface
MLKRemoteModel
:
NSObject
-
A model source indicating where the model is hosted remotely.
Declaration
Objective-C
@interface
MLKRemoteModelSource
:
NSObject
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eML Kit provides classes for managing machine learning models, including local and remote models.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKModelManager\u003c/code\u003e is the central class for managing models used by ML Kit features.\u003c/p\u003e\n"],["\u003cp\u003eRemote models can be downloaded and managed using \u003ccode\u003eMLKRemoteModel\u003c/code\u003e, \u003ccode\u003eMLKCustomRemoteModel\u003c/code\u003e, and \u003ccode\u003eMLKRemoteModelSource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMLKModelDownloadConditions\u003c/code\u003e allows configuration of model downloading conditions.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003eMLKLocalModel\u003c/code\u003e for interacting with models stored directly on the device.\u003c/p\u003e\n"]]],["Six classes are available, defining model management in MLKit. `MLKCustomRemoteModel` and `MLKRemoteModel` represent models stored on a server and downloaded to the device. `MLKLocalModel` denotes a model stored locally. `MLKModelDownloadConditions` configures the downloading parameters. `MLKModelManager` manages the models used by MLKit. `MLKRemoteModelSource` specifies the remote hosting location of a model. All these classes are written in Objective-C.\n"],null,["# MLKitCommon Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKCustomRemoteModel](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKCustomRemoteModel)\n\n `\n ` \n A custom model that is stored remotely on the server and downloaded to the device. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKCustomRemoteModel : /ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKRemoteModel\n\n- `\n ``\n ``\n `\n\n ### [MLKLocalModel](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKLocalModel)\n\n `\n ` \n A model stored locally on the device. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKLocalModel : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKModelDownloadConditions](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKModelDownloadConditions)\n\n `\n ` \n Configurations for model downloading conditions. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKModelDownloadConditions : NSObject \u003cNSCopying\u003e\n\n- `\n ``\n ``\n `\n\n ### [MLKModelManager](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKModelManager)\n\n `\n ` \n Manages models that are used by MLKit features. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKModelManager : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKRemoteModel](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKRemoteModel)\n\n `\n ` \n A model that is stored remotely on the server and downloaded to the device. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKRemoteModel : NSObject\n\n- `\n ``\n ``\n `\n\n ### [MLKRemoteModelSource](/ml-kit/reference/ios/mlkitcommon/api/reference/Classes/MLKRemoteModelSource)\n\n `\n ` \n A model source indicating where the model is hosted remotely. \n\n #### Declaration\n\n Objective-C \n\n\n @interface MLKRemoteModelSource : NSObject"]]