FIRCloudModelSource


@interface FIRCloudModelSource : NSObject

A model stored in the cloud and downloaded to the device.

  • The model name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull name;
  • 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 download 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)
          initWithName:(nonnull NSString *)name
    enableModelUpdates:(BOOL)enableModelUpdates
     initialConditions:(nonnull FIRModelDownloadConditions *)initialConditions
      updateConditions:(nullable FIRModelDownloadConditions *)updateConditions;

    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 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;