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