com.google.mlkit.common.model
Stay organized with collections
Save and categorize content based on your preferences.
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-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis page provides details about various classes used for managing Machine Learning models in Android, including remote and local models.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these classes to define, download, and access models for use with ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eKey classes include \u003ccode\u003eCustomRemoteModel\u003c/code\u003e, \u003ccode\u003eLocalModel\u003c/code\u003e, \u003ccode\u003eRemoteModel\u003c/code\u003e, and their respective builders and managers for model manipulation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDownloadConditions\u003c/code\u003e enables setting conditions for remote model downloads, providing control over network usage and user experience.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRemoteModelSource\u003c/code\u003e specifies the location of remote models, allowing flexible hosting options for developers.\u003c/p\u003e\n"]]],[],null,["# com.google.mlkit.common.model\n\n### Classes\n\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| [CustomRemoteModel](/android/reference/com/google/mlkit/common/model/CustomRemoteModel) | A custom model that is stored remotely on the server and downloaded to the device. |\n| [CustomRemoteModel.Builder](/android/reference/com/google/mlkit/common/model/CustomRemoteModel.Builder) | Builder of [CustomRemoteModel](/android/reference/com/google/mlkit/common/model/CustomRemoteModel). |\n| [DownloadConditions](/android/reference/com/google/mlkit/common/model/DownloadConditions) | Conditions to download remote models. |\n| [DownloadConditions.Builder](/android/reference/com/google/mlkit/common/model/DownloadConditions.Builder) | Builder of [DownloadConditions](/android/reference/com/google/mlkit/common/model/DownloadConditions). |\n| [LocalModel](/android/reference/com/google/mlkit/common/model/LocalModel) | Describes a local model created from absolute file path, asset file path or URI. |\n| [LocalModel.Builder](/android/reference/com/google/mlkit/common/model/LocalModel.Builder) | Builder class of [LocalModel](/android/reference/com/google/mlkit/common/model/LocalModel). |\n| [RemoteModel](/android/reference/com/google/mlkit/common/model/RemoteModel) | Describes a remote model to be downloaded to the device. |\n| [RemoteModelManager](/android/reference/com/google/mlkit/common/model/RemoteModelManager) | Manages remote models. |\n| [RemoteModelSource](/android/reference/com/google/mlkit/common/model/RemoteModelSource) | A model source indicating where the model is hosted remotely. |"]]