ثابت ها
ثابت های زیر در سطح جهانی در دسترس هستند.
نام
Notification
برای مشاهده وظایف دانلود مدل موفقیت آمیز. فرهنگ لغت اطلاعات کاربر حاوی{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
خواهد بود.اعلام
هدف-C
extern NS_SWIFT_NAME(mlkitModelDownloadDidSucceed) const NSNotificationName MLKModelDownloadDidSucceedNotification
نام
Notification
برای مشاهده وظایف دانلود مدل که با شکست مواجه می شوند. فرهنگ لغت اطلاعات کاربر حاوی{ModelDownloadUserInfoKey.remoteModel : RemoteModel}
و{ModelDownloadUserInfoKey.error : NSError}
خواهد بود.اعلام
هدف-C
extern NS_SWIFT_NAME(mlkitModelDownloadDidFail) const NSNotificationName MLKModelDownloadDidFailNotification
کلید بازیابی
RemoteModel
از فرهنگ لغت اطلاعات کاربر.اعلام
هدف-C
extern const MLKModelDownloadUserInfoKey _Nonnull MLKModelDownloadUserInfoKeyRemoteModel
کلید بازیابی
NSError
از فرهنگ لغت اطلاعات کاربر. اگر دانلود مدل با موفقیت انجام شود، مقدار مربوطهnil
است.اعلام
هدف-C
extern const MLKModelDownloadUserInfoKey _Nonnull MLKModelDownloadUserInfoKeyError