PhoneNumber
public protocol PhoneNumber
An opaque protocol representing a parsed phone number.
Example usage:
It be passed as an argument when creating a Sinch Verification instance
It can be passed as an argument to the PhoneNumberUtil formatting functions.
-
Country calling code according to the International Telecommunication Union (ITU).
(Sometimes also referred to as country dial in code.)
IMPORTANT: This is not the same as an ISO-3166-1 country code.
Declaration
Swift
var countryCode : Int
-
Declaration
Swift
var rawInput : String?
Return Value
The raw input that was provided when the phone number was parsed. May be nil (e.g. if the phone number is an example number, and was not parsed from user input).