FIRLocalModelSource


@interface FIRLocalModelSource : NSObject

Source of a custom model stored locally on the device.

  • The model name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull modelName;
  • The file path to the custom model stored locally on the device.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull path;
  • Creates an instance of LocalModelSource with a given path and name.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModelName:(nonnull NSString *)modelName
                                         path:(nonnull NSString *)path;

    Parameters

    modelName

    A custom local model name. Within a same Firebase app, all custom local models should have distinct names (same for the cloud and local sources).

    path

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

    Return Value

    A new instance of LocalModelSource with the given path.

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;