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;