MLKitBarcodeScanning Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
MLKBarcodePersonName
@interface MLKBarcodePersonName : NSObject
A person’s name, both formatted as individual name components.
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *formattedName;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *first;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *last;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *middle;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *prefix;
-
Designates a text string to be set as the kana name in the phonebook.
Used for Japanese contacts.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *pronunciation;
-
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *suffix;
-
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[null,null,["Last updated 2024-07-10 UTC."],[[["\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;"]]