Constants
The following constants are available globally.
-
Notification
name for observing model download tasks that succeed. The user info dictionary will contain{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
.Declaration
Swift
static let mlkitModelDownloadDidSucceed: NSNotification.Name
-
Notification
name for observing model download tasks that fail. The user info dictionary will contain{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
and{ModelDownloadUserInfoKey.error : NSError}
.Declaration
Swift
static let mlkitModelDownloadDidFail: NSNotification.Name
-
The key for retrieving the
RemoteModel
from the user info dictionary.Declaration
Swift
static let remoteModel: ModelDownloadUserInfoKey
-
The key for retrieving the
NSError
from the user info dictionary. The corresponding value isnil
if the model download completed successfully.Declaration
Swift
static let error: ModelDownloadUserInfoKey