Hằng số
Các hằng số sau đây có sẵn trên toàn cầu.
-
Tên
Notification
để quan sát các thao tác tải mô hình xuống thành công. Từ điển thông tin người dùng sẽ chứa{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
.Khai báo
Objective-C
extern NS_SWIFT_NAME(mlkitModelDownloadDidSucceed) const NSNotificationName MLKModelDownloadDidSucceedNotification
-
Tên
Notification
để quan sát các tác vụ tải mô hình xuống không thành công. Từ điển thông tin người dùng sẽ chứa{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
và{ModelDownloadUserInfoKey.error : NSError}
.Khai báo
Objective-C
extern NS_SWIFT_NAME(mlkitModelDownloadDidFail) const NSNotificationName MLKModelDownloadDidFailNotification
-
Khoá để truy xuất
RemoteModel
từ từ điển thông tin người dùng.Khai báo
Objective-C
extern const MLKModelDownloadUserInfoKey _Nonnull MLKModelDownloadUserInfoKeyRemoteModel
-
Khoá để truy xuất
NSError
từ từ điển thông tin người dùng. Giá trị tương ứng lànil
nếu quá trình tải mô hình xuống hoàn tất thành công.Khai báo
Objective-C
extern const MLKModelDownloadUserInfoKey _Nonnull MLKModelDownloadUserInfoKeyError