FIRModelOptions


@interface FIRModelOptions : NSObject

Options for specifying a custom model.

  • Name of a model to be downloaded from the cloud.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *cloudModelName;
  • Name of a custom model stored locally in a file on the device.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *localModelName;
  • Creates a new instance of ModelOptions with the given local and/or cloud model name. At least one model name must be provided. If both cloud and local model names are provided, then the cloud model takes priority.

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithCloudModelName:(nullable NSString *)cloudModelName
            localModelName:(nullable NSString *)localModelName;

    Parameters

    cloudModelName

    The cloud custom model name. Pass nil if only the provided local model name should be used.

    localModelName

    The local custom model name. Pass nil if only the provided cloud model name should be used.

    Return Value

    Custom model options instance with the given model name(s).

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;