FIRModelDownloadConditions


@interface FIRModelDownloadConditions : NSObject <NSCopying>

Configurations for downloading conditions.

  • Indicates whether WiFi is required for downloading. The default is NO.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isWiFiRequired;
  • Indicates whether the model can be downloaded while the app is in the background. The default is NO.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canDownloadInBackground;
  • Creates an instance of ModelDownloadConditions with the given configuration.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIsWiFiRequired:(BOOL)isWiFiRequired
                           canDownloadInBackground:(BOOL)canDownloadInBackground;

    Parameters

    isWiFiRequired

    Whether a device has to be connected to WiFi for downloading to start.

    canDownloadInBackground

    Whether the model can be downloaded while the app is in the background.

    Return Value

    A new instance of ModelDownloadConditions.

  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;