MLKitTranslate Framework Reference

  • 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.

Classes

The following classes are available globally.

  • 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 translate model that is stored remotely on the server and downloaded on the device.

    Declaration

    Objective-C

      @interface 
     MLKTranslateRemoteModel 
     : 
      MLKRemoteModel 
     
     
    
  • A class that translates the given input text.

    Declaration

    Objective-C

      @interface 
     MLKTranslator 
     : 
     NSObject 
     
    
  • Options for Translator .

    Declaration

    Objective-C

      @interface 
     MLKTranslatorOptions 
     : 
     NSObject 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: