Tài liệu tham khảo về khung MLKitEntityExtraction
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
MLKPaymentCardEntity
@interface MLKPaymentCardEntity : NSObject
Pháp nhân thẻ thanh toán được trích xuất từ văn bản.
-
Mạng lưới thẻ thanh toán.
-
Số thẻ thanh toán ở dạng chính tắc. Ví dụ: 4111111111111111.
Khai báo
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull paymentCardNumber;
-
Khai báo
Objective-C
- (nonnull instancetype)init;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],["The `MLKPaymentCardEntity` class represents a payment card extracted from text. It has two key properties: `paymentCardNetwork`, which specifies the card's network (e.g., Visa, Mastercard), and `paymentCardNumber`, the card number in a standardized format. The `init` method is unavailable for direct instantiation, suggesting that instances are created through other means. These two properties allow the identification of payment card from text.\n"]]