MLKitTranslate 架構參考資料
-
聲明
Objective-C
@interface MLKModelManager : NSObject
-
聲明
Objective-C
@interface MLKRemoteModel : NSObject
-
-
聲明
Objective-C
@interface MLKTranslator : NSObject
-
聲明
Objective-C
@interface MLKTranslatorOptions : NSObject
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-06 (世界標準時間)。
[null,null,["上次更新時間:2024-11-06 (世界標準時間)。"],[[["ML Kit provides classes for managing models, including remote models that are downloaded to the device."],["The `MLKTranslator` class handles text translation, utilizing models managed by `MLKModelManager`."],["`MLKTranslateRemoteModel` represents a translation model stored remotely and downloaded when needed."],["`MLKTranslatorOptions` allows customization of the translation process through various settings."],["Developers can use these classes to integrate on-device or cloud-based translation features in their iOS applications."]]],["The core content outlines five globally available classes for MLKit features. `MLKModelManager` manages models. `MLKRemoteModel` represents models stored remotely and downloaded. `MLKTranslateRemoteModel` is a specific remote model for translation. `MLKTranslator` translates text inputs. Lastly, `MLKTranslatorOptions` provides customization settings for the `MLKTranslator` class. All classes are defined in Objective-C.\n"]]