Enums

The following enums are available globally.

  • When formatting a phone number that is to be used to initiate a Sinch Verification, the format PhoneNumberFormat.E164 should be used. The other two formats (International and National) are primarily for formatting for displaying in a GUI context.

    For overview information on E.164 see https://en.wikipedia.org/wiki/E.164. The International and National formats are consistent with the definition in ITU-T Recommendation E.123.

    Declaration

    Swift

    public enum PhoneNumberFormat : Int
  • Possible errors when parsing a string as a phone number.

    Declaration

    Swift

    public enum PhoneNumberParseError: Error
  • Possible errors when testing whether a string is a possible / viable phone number.

    Declaration

    Swift

    public enum PhoneNumberValidationError