FIRRemoteModel


@interface FIRRemoteModel : NSObject

A model that is stored remotely on the server and downloaded to the device.

  • The model name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull name;
  • Indicates whether model updates are allowed.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowsModelUpdates;
  • Initial downloading conditions for the model.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        FIRModelDownloadConditions *_Nonnull initialConditions;
  • Downloading conditions for subsequent calls to update the model.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        FIRModelDownloadConditions *_Nonnull updateConditions;
  • Creates an instance of RemoteModel with the given name and download conditions.

    Declaration

    Objective-C

    - (nonnull instancetype)
              initWithName:(nonnull NSString *)name
        allowsModelUpdates:(BOOL)allowsModelUpdates
         initialConditions:(nonnull FIRModelDownloadConditions *)initialConditions
          updateConditions:(nullable FIRModelDownloadConditions *)updateConditions;

    Parameters

    name

    The name of the remote model. Specify the name assigned to the model when it was uploaded to the Firebase Console. Within the same Firebase app, all remote models should have distinct names.

    allowsModelUpdates

    Indicates whether model updates are allowed.

    initialConditions

    Initial downloading conditions for the model.

    updateConditions

    Downloading conditions for subsequent calls to update the model. If nil is passed and allowsModelUpdates is YES, the default download conditions are used via the ModelDownloadConditions init call.

    Return Value

    A new RemoteModel instance.

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;