MLKitBarcodeScanning 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MLKBarcodePersonName
@interface MLKBarcodePersonName : NSObject
个人的姓名,均采用各个姓名组成部分的格式。
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *formattedName;
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *first;
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *last;
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *middle;
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *prefix;
-
指定一个文本字符串,将其设为电话簿中的假名名称。
用于日语联系人。
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *pronunciation;
-
声明
Objective-C
@property (nonatomic, readonly, nullable) NSString *suffix;
-
声明
Objective-C
- (nonnull instancetype)init;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eMLKBarcodePersonName\u003c/code\u003e represents a person's name, providing access to individual name components like first, last, middle, prefix, and suffix.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003eformattedName\u003c/code\u003e property for the properly formatted full name.\u003c/p\u003e\n"],["\u003cp\u003eFor Japanese contacts, a \u003ccode\u003epronunciation\u003c/code\u003e property can be used to specify the kana name.\u003c/p\u003e\n"],["\u003cp\u003eThe class is read-only, with properties accessed but not modified directly, and direct initialization is unavailable.\u003c/p\u003e\n"]]],[],null,["# MLKitBarcodeScanning Framework Reference\n\nMLKBarcodePersonName\n====================\n\n\n @interface MLKBarcodePersonName : NSObject\n\nA person's name, both formatted as individual name components.\n- `\n ``\n ``\n `\n\n ### [formattedName](#/c:objc(cs)MLKBarcodePersonName(py)formattedName)\n\n `\n ` \n Properly formatted name. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *formattedName;\n\n- `\n ``\n ``\n `\n\n ### [first](#/c:objc(cs)MLKBarcodePersonName(py)first)\n\n `\n ` \n First name. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *first;\n\n- `\n ``\n ``\n `\n\n ### [last](#/c:objc(cs)MLKBarcodePersonName(py)last)\n\n `\n ` \n Last name. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *last;\n\n- `\n ``\n ``\n `\n\n ### [middle](#/c:objc(cs)MLKBarcodePersonName(py)middle)\n\n `\n ` \n Middle name. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *middle;\n\n- `\n ``\n ``\n `\n\n ### [prefix](#/c:objc(cs)MLKBarcodePersonName(py)prefix)\n\n `\n ` \n Name prefix. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *prefix;\n\n- `\n ``\n ``\n `\n\n ### [pronunciation](#/c:objc(cs)MLKBarcodePersonName(py)pronunciation)\n\n `\n ` \n Designates a text string to be set as the kana name in the phonebook.\n Used for Japanese contacts. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *pronunciation;\n\n- `\n ``\n ``\n `\n\n ### [suffix](#/c:objc(cs)MLKBarcodePersonName(py)suffix)\n\n `\n ` \n Name suffix. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *suffix;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKBarcodePersonName(im)init)\n\n `\n ` \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]