FIRModelOptions


@interface FIRModelOptions : NSObject

Options for specifying a custom model.

  • The name of a model downloaded from the server.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *remoteModelName;
  • The name of a model stored locally on the device.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithRemoteModelName:(nullable NSString *)remoteModelName
                 localModelName:(nullable NSString *)localModelName;

    Parameters

    remoteModelName

    The remote 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 remote model name should be used.

    Return Value

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

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;