定数
次の定数はグローバルで使用できます。
-
Notification
: 成功したモデルのダウンロード タスクを監視するための名前。ユーザー情報辞書には{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
が含まれます。宣言
Swift
static let mlkitModelDownloadDidSucceed: NSNotification.Name
-
Notification
: 失敗したモデルのダウンロード タスクを監視するための名前。ユーザー情報辞書には、{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
と{ModelDownloadUserInfoKey.error : NSError}
が含まれます。宣言
Swift
static let mlkitModelDownloadDidFail: NSNotification.Name
-
ユーザー情報辞書から
RemoteModel
を取得するためのキー。宣言
Swift
static let remoteModel: ModelDownloadUserInfoKey
-
ユーザー情報辞書から
NSError
を取得するためのキー。モデルのダウンロードが正常に完了した場合、対応する値はnil
です。宣言
Swift
static let error: ModelDownloadUserInfoKey