Phone Number Tools Extension

Phone Tools Extension
Permissions required : READ_CONTACTS
Min. api : 5
Release date : 2020-09-20T23:00:00Z
Last update date : 2020-09-20T23:00:00Z
Current version : 1.0

Description

Hello every one.Today i introduce my latest extension.Phone Number Tools :grin: ! This extension allows you to do some calculations with phone numbers, get contact names,images,and phone numbers list in order!

Blocks picture

Documentation

Block Description
This event is fired when the extension gets the contacts image list async.

Params Type Description
list List The list of contacts images.

This event is fired when the extension gets the contacts name list async.

Params Type Description
list List The list of contact names

This event is fired when the extension gets the contacts phone list async.

Params Type Description
list List The list of contatcs phone numbers.

Compare phone numbers a and b, return true if they're identical enough for caller ID purposes.


Params Type Description
Num1 String the number which will be compared with num2
Num2 String the number which will be compared with num1

Format a phone number.


Params Type Description
num String the number which will be compared with num2
defaultCountryIso String the country iso which will be used if there was no country iso

Returns the contact image from phone number.This phone number must be defined in the user contacts.The result will be a content uri.


Params Type Description
number String The number that the extension will get its image

Returns the contact name from phone number.This phone number must be defined in the user contacts.T


Params Type Description
number String The number that the extension will get its image

SetElevationShadow Returns the contact uri from phone number.This phone number must be defined in the user contacts.T


Params Type Description
number String The number that the extension will get its image

Gets contacts image list.


Gets the Contacts images asynchronously.


Gets the Contacts names asynchronously.


SetElevationShadow Gets the Contacts names list.


Gets the Contacts phone number list.


Gets the Contacts phone numbers list asynchronously.


Returns true if the phone number is a global number.


Params Type Description
number String The number that the extension will use to determine if its a global number.

SetElevationShadow Returns true if the phone number is a valid phone number.


Params Type Description
number String The number that the extension will validate.

SetElevationShadow checks a given number against the voicemail number provided by the RIL and SIM card.


Params Type Description
num String The number that the extension will check if it is a voice mail.

Return true if the network portion of address is, as far as we can tell on the device, suitable for use as an SMS destination address.


Params Type Description
num String The adderess that the extension will validate.Ex:5551234567@txt.att.net.

Normalize a phone number by removing the characters other than digits.


Params Type Description
num String The number the extension will normalize.

SetElevationShadow Returns the contact id from phone number.This phone number must be defined in the user contacts.


Params Type Description
num String The number the extension will get its contact id.

Downloads

AIX (V1): io.mohamed.PhoneNumbersTools.aix (16.5 KB)
AIX (V2): io.mohamed.PhoneNumbersTools.aix (30.1 KB)
AIX (V2.1): io.mohamed.PhoneNumbersTools.aix (33.2 KB)

Credits

Thanks for reading! :slightly_smiling_face:
If you liked this extension please hit the like button :heart: And if you’ve an improvements or bugs please tell me :grinning:

Regards,
Mohamed Tamer

7 Likes

great work @MohamedTamer

3 Likes

Great extension @MohamedTamer

2 Likes

Thanks @Rizu :blush:

2 Likes

Welcome. I expect you to make even better extensions in the future

3 Likes

Wooow ! I am shocked how i missed this gr8 extension :sweat_smile: Nice extension :heart_eyes:

1 Like