Phonenumber utils
Tizen enables you to parse and format phone numbers. The Phonenumber utils APIs are implemented with the libphonenumber opensource library.
This feature is supported in mobile applications only.
The main features of the Phonenumber utils API include:
- Retrieving the location information
You can get the location based on the phone number, region, and language using the phone_number_get_location_from_number() function. If the function cannot provide the location with the passed language, it uses English.
- Formatting the phone number
You can format the phone number string based on the region using the dash ("-") and space (" ") characters using the phone_number_get_formatted_number() function.