Warning

This feature is available in the Full MapKit SDK version

MMKSearchPhone

@interface MMKSearchPhone : NSObject

Organization phone.

Summary

Class methods

+ (nonnull MMKSearchPhone *)phoneWithType:( MMKSearchPhoneType)type
                          formattedNumber:(nonnull NSString *)formattedNumber
                                     info:(nullable NSString *)info
                                  country:(nullable NSString *)country
                                   prefix:(nullable NSString *)prefix
                                      ext:(nullable NSString *)ext
                                   number:(nullable NSString *)number;

Properties

@property (nonatomic, readonly) MMKSearchPhoneType type;
Phone type

@property (nonatomic, readonly, nonnull) NSString *formattedNumber;
Full phone number as human readable string

@property (nonatomic, readonly, nullable) NSString *info;
Some additional info to differentiate multiple phones for single organization

@property (nonatomic, readonly, nullable) NSString *country;
Phone country code

@property (nonatomic, readonly, nullable) NSString *prefix;
Phone prefix

@property (nonatomic, readonly, nullable) NSString *ext;
Phone extension

@property (nonatomic, readonly, nullable) NSString *number;
Phone number

Class methods

phoneWithType:formattedNumber:info:country:prefix:ext:number:

+ (nonnull MMKSearchPhone *)phoneWithType:( MMKSearchPhoneType)type
                          formattedNumber:(nonnull NSString *)formattedNumber
                                     info:(nullable NSString *)info
                                  country:(nullable NSString *)country
                                   prefix:(nullable NSString *)prefix
                                      ext:(nullable NSString *)ext
                                   number:(nullable NSString *)number;


Properties

type

@property (nonatomic, readonly) MMKSearchPhoneType type;

Phone type.


formattedNumber

@property (nonatomic, readonly, nonnull) NSString *formattedNumber;

Full phone number as human readable string.


info

@property (nonatomic, readonly, nullable) NSString *info;

Some additional info to differentiate multiple phones for single organization.

Optional field, can be nil.


country

@property (nonatomic, readonly, nullable) NSString *country;

Phone country code.

Optional field, can be nil.


prefix

@property (nonatomic, readonly, nullable) NSString *prefix;

Phone prefix.

Optional field, can be nil.


ext

@property (nonatomic, readonly, nullable) NSString *ext;

Phone extension.

Optional field, can be nil.


number

@property (nonatomic, readonly, nullable) NSString *number;

Phone number.

Optional field, can be nil.