PhoneNumberIdentifier

@objcMembers
public class PhoneNumberIdentifier : NSObject, CommunicationIdentifier

Communication identifier for Communication Services representing a Phone Number

  • Undocumented

    Declaration

    Swift

    public let phoneNumber: String
  • Undocumented

    Declaration

    Swift

    public private(set) var rawId: String { get }
  • Undocumented

    Declaration

    Swift

    public var kind: IdentifierKind { get }
  • Creates a PhoneNumberIdentifier object

    Declaration

    Swift

    public init(phoneNumber: String, rawId: String? = nil)

    Parameters

    phoneNumber

    phone number to create the object, different from identifier

    rawId

    The optional raw id of the phone number.

  • Returns a Boolean value indicating whether two values are equal. Note: In Objective-C favor isEqual() method

    Declaration

    Swift

    public static func == (lhs: PhoneNumberIdentifier, rhs: PhoneNumberIdentifier) -> Bool
  • Returns a Boolean value that indicates whether the receiver is equal to another given object. This will automatically return false if object being compared to is not a PhoneNumberIdentifier.

    Declaration

    Swift

    override public func isEqual(_ object: Any?) -> Bool