CloudModelSource

class CloudModelSource : NSObject

Source of a custom model stored in the cloud and downloaded to the device.

  • The model name.

    Declaration

    Swift

    var modelName: String { get }
  • Indicates whether model updates are enabled.

    Declaration

    Swift

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

    Declaration

    Swift

    var initialConditions: FIRModelDownloadConditions { get }
  • Subsequent update conditions for the model. If nil is passed to the initializer, the default update conditions are set, but are only used if enableModelUpdates is YES.

    Declaration

    Swift

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

    Declaration

    Swift

    init(modelName: String, enableModelUpdates: Bool, initialConditions: FIRModelDownloadConditions, updateConditions: FIRModelDownloadConditions?)

    Parameters

    modelName

    The name of the model you to load. Specify the name you assigned the model when you uploaded it to the Firebase console. Within a same Firebase app, all custom cloud models should have distinct names.

    enableModelUpdates

    Indicates whether model updates are enabled.

    initialConditions

    Initial downloading conditions for the model.

    updateConditions

    Subsequent update conditions for the model. If it is nil and enableModelUpdates is YES, the default download conditions are used.

    Return Value

    A new instance of CloudModelSource with the given name and conditions.

  • Unavailable.