FIRCloudModelSource


@interface FIRCloudModelSource : NSObject

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

  • The model name.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        FIRModelDownloadConditions *_Nonnull initialConditions;
  • 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

    Objective-C

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

    Declaration

    Objective-C

    - (nonnull instancetype)
     initWithModelName:(nonnull NSString *)modelName
    enableModelUpdates:(BOOL)enableModelUpdates
     initialConditions:(nonnull FIRModelDownloadConditions *)initialConditions
      updateConditions:(nullable FIRModelDownloadConditions *)updateConditions;

    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.

    Declaration

    Objective-C

    - (nonnull instancetype)init;