@Deprecated public class ShortNumberUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ShortNumberUtil.ShortNumberCost
Deprecated.
Cost categories of short numbers.
|
Constructor and Description |
---|
ShortNumberUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
connectsToEmergencyNumber(String number,
String regionCode)
Deprecated.
Returns true if the number might be used to connect to an emergency service in the given
region.
|
Set<String> |
getSupportedRegions()
Deprecated.
Convenience method to get a list of what regions the library has metadata for.
|
boolean |
isEmergencyNumber(String number,
String regionCode)
Deprecated.
Returns true if the number exactly matches an emergency service number in the given region.
|
public Set<String> getSupportedRegions()
public boolean connectsToEmergencyNumber(String number, String regionCode)
number
- the phone number to testregionCode
- the region where the phone number is being dialedpublic boolean isEmergencyNumber(String number, String regionCode)
number
- the phone number to testregionCode
- the region where the phone number is being dialedCopyright © 2015 Google. All Rights Reserved.