RemoteModel

class RemoteModel : NSObject

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

  • The model name.

    Declaration

    Swift

    var name: String { get }
  • Indicates whether model updates are allowed.

    Declaration

    Swift

    var allowsModelUpdates: Bool { get }
  • Initial downloading conditions for the model.

    Declaration

    Swift

    var initialConditions: FIRModelDownloadConditions { get }
  • Downloading conditions for subsequent calls to update the model.

    Declaration

    Swift

    var updateConditions: FIRModelDownloadConditions { get }
  • Creates an instance of RemoteModel with the given name and download conditions.

    Declaration

    Swift

    init(name: String, allowsModelUpdates: Bool, initialConditions: FIRModelDownloadConditions, updateConditions: FIRModelDownloadConditions?)

    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.