Constants
The following constants are available globally.
-
Notificationname for observing model download tasks that succeed. The user info dictionary will contain{ModelDownloadUserInfoKey.remoteModel : RemoteModel}.Declaration
Objective-C
extern NS_SWIFT_NAME(firebaseMLModelDownloadDidSucceed) const NSNotificationName FIRModelDownloadDidSucceedNotification -
Notificationname for observing model download tasks that fail. The user info dictionary will contain{ModelDownloadUserInfoKey.remoteModel : RemoteModel}and{ModelDownloadUserInfoKey.error : NSError}.Declaration
Objective-C
extern NS_SWIFT_NAME(firebaseMLModelDownloadDidFail) const NSNotificationName FIRModelDownloadDidFailNotification -
The key for retrieving the
RemoteModelfrom the user info dictionary.Declaration
Objective-C
extern const FIRModelDownloadUserInfoKey _Nonnull FIRModelDownloadUserInfoKeyRemoteModel -
The key for retrieving the
NSErrorfrom the user info dictionary. The corresponding value isnilif the model download completed successfully.Declaration
Objective-C
extern const FIRModelDownloadUserInfoKey _Nonnull FIRModelDownloadUserInfoKeyError