MLKitCommon Framework Reference

MLKLocalModel

  @interface 
 MLKLocalModel 
 : 
 NSObject 
 

A model stored locally on the device.

  • An absolute path to a model file stored locally on the device.

    Declaration

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     copy 
     , 
     readonly 
     ) 
     NSString 
     * 
     _Nonnull 
     path 
     ; 
     
    
  • An absolute path to a model manifest file stored locally on the device. nil if the model does not have a manifest.

    Declaration

    Objective-C

      @property 
     ( 
     nonatomic 
     , 
     copy 
     , 
     readonly 
     , 
     nullable 
     ) 
     NSString 
     * 
     manifestPath 
     ; 
     
    
  • Creates a new instance with the given model file path.

    Declaration

    Objective-C

      - 
     ( 
     nonnull 
     instancetype 
     ) 
     initWithPath 
     :( 
     nonnull 
     NSString 
     * 
     ) 
     path 
     ; 
     
    

    Parameters

    path

    Absolute path to a model file stored locally on the device.

    Return Value

    A new LocalModel instance.

  • Creates a new instance with the given manifest file path of an AutoML Vision Edge model.

    Declaration

    Objective-C

      - 
     ( 
     nullable 
     instancetype 
     ) 
     initWithManifestPath 
     :( 
     nonnull 
     NSString 
     * 
     ) 
     manifestPath 
     ; 
     
    

    Parameters

    manifestPath

    Absolute path to an AutoML Vision Edge model manifest stored locally on the device.

    Return Value

    A new LocalModel instance. nil if the model manifest at the given manifestPath is either missing or invalid.

  • Unavailable.

    Declaration

    Objective-C

      - 
     ( 
     nonnull 
     instancetype 
     ) 
     init 
     ; 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: