CloudModelSource
class CloudModelSource : NSObject
A model stored in the cloud and downloaded to the device.
-
The model name.
Declaration
Swift
var name: String { get }
-
Indicates whether model updates are enabled.
Declaration
Swift
var enableModelUpdates: Bool { get }
-
Initial downloading conditions for the model.
Declaration
Swift
var initialConditions: ModelDownloadConditions { get }
-
Subsequent update conditions for the model. If
nil
is passed to the initializer, the default download conditions are set, but are only used ifenableModelUpdates
isYES
.Declaration
Swift
var updateConditions: ModelDownloadConditions { get }
-
Creates an instance of
CloudModelSource
with the given name and the download conditions.Declaration
Swift
init(name: String, enableModelUpdates: Bool, initialConditions: ModelDownloadConditions, updateConditions: ModelDownloadConditions?)
Parameters
name
The name of the model to download. Specify the name you assigned the model when you uploaded it to the Firebase console. Within the same Firebase app, all 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
andenableModelUpdates
isYES
, the default download conditions are used.Return Value
A new instance of
CloudModelSource
with the given name and conditions. -
Unavailable.