/// <summary>
/// The PhonenumberUtils class provides methods for parsing, formatting and normalizing phone numbers.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public class PhonenumberUtils : IDisposable
{
private bool disposed = false;
+ /// <summary>
+ /// Creates a PhonenumberUtils.
+ /// </summary>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
+ /// <exception cref="NotSupportedException">Thrown when feature is not supported</exception>
+ /// <since_tizen> 4 </since_tizen>
public PhonenumberUtils()
{
int ret;
/// Releases all resources used by the PhonenumberUtils.
/// It should be called after finished using of the object.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public void Dispose()
{
Dispose(true);
/// <param name="region">The region of number</param>
/// <param name="language">The language of location</param>
/// <returns>The location string</returns>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
/// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
- /// <exception cref="NotSupportedException">Thrown when phonenumber-utils is not supported</exception>
+ /// <exception cref="NotSupportedException">Thrown when feature is not supported</exception>
/// <exception cref="ArgumentException">Thrown when input coordinates are invalid</exception>
/// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory</exception>
+ /// <since_tizen> 4 </since_tizen>
public string GetLocationFromNumber(string number, Region region, Language language)
{
int ret;
/// <param name="number">The number</param>
/// <param name="region">The region of number</param>
/// <returns>The formatted number string</returns>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
/// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
- /// <exception cref="NotSupportedException">Thrown when phonenumber-utils is not supported</exception>
+ /// <exception cref="NotSupportedException">Thrown when feature is not supported</exception>
/// <exception cref="ArgumentException">Thrown when input coordinates are invalid</exception>
/// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory</exception>
+ /// <since_tizen> 4 </since_tizen>
public string GetFormattedNumber(string number, Region region)
{
int ret;
/// <privilege>http://tizen.org/privilege/telephony</privilege>
/// <feature>http://tizen.org/feature/network.telephony</feature>
/// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
- /// <exception cref="NotSupportedException">Thrown when phonenumber-utils is not supported</exception>
+ /// <exception cref="NotSupportedException">Thrown when feature is not supported</exception>
/// <exception cref="ArgumentException">Thrown when input coordinates are invalid</exception>
/// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when application does not have proper privileges</exception>
/// Normalized number starts with plus('+') and country code, and excludes the separators such as dash or space.
/// It is a format of E.164 standard including the country code based on current network.
/// </remarks>
+ /// <since_tizen> 4 </since_tizen>
public string GetNormalizedNumber(string number)
{
int ret;