PhoneCall extension

1,297 views
Skip to first unread message

Qiang Wei

unread,
Jan 23, 2017, 3:35:24 AM1/23/17
to MIT App Inventor Forum
Introduction:
this is an extension for making a phonecall

function:
MakePhoneCall(String number)

//number is the phone number you tend to call.

Author:
Qiang Wei       
Stu.From China
Thank you for your support.

Download here:

Taifun

unread,
Jan 23, 2017, 8:06:16 AM1/23/17
to MIT App Inventor Forum
what exactly is the advantage of using your extension compared to using the built in phonecall component?

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 




   PhoneCall

A non-visible component that makes a phone call to the number specified in the PhoneNumber property, which can be set either in the Designer or Blocks Editor. The component has a MakePhoneCall method, enabling the program to launch a phone call.

Often, this component is used with the ContactPicker component, which lets the user select a contact from the ones stored on the phone and sets the PhoneNumber property to the contact's phone number.

To directly specify the phone number (e.g., 650-555-1212), set the PhoneNumber property to a Text with the specified digits (e.g., "6505551212"). Dashes, dots, and parentheses may be included (e.g., "(650)-555-1212") but will be ignored; spaces may not be included.

Properties

PhoneNumber

Events

IncomingCallAnswered(text phoneNumber)
Event indicating that an incoming phone call is answered. phoneNumber is the incoming call phone number.
PhoneCallEnded(number status, text phoneNumber)
Event indicating that a phone call has ended. If status is 1, incoming call is missed or rejected; if status is 2, incoming call is answered before hanging up; if status is 3, outgoing call is hung up. phoneNumber is the ended call phone number.
PhoneCallStarted(number status, text phoneNumber)
Event indicating that a phonecall has started. If status is 1, incoming call is ringing; if status is 2, outgoing call is dialled. phoneNumber is the incoming/outgoing phone number.

Methods

MakePhoneCall()
Makes a phone call using the number in the PhoneNumber property.

Qiang Wei

unread,
Jan 23, 2017, 10:20:06 AM1/23/17
to MIT App Inventor Forum
Next version will have videophone call 

Taifun

unread,
Jan 23, 2017, 2:39:22 PM1/23/17
to MIT App Inventor Forum
it probably would be a good idea to provide a small documentation of your extensions, at least a short list of properties, methods and events and a short description...

this would help very much so someone who likes to use an extension can directly see, if it will be useful or not...

see also my extensions here https://puravidaapps.com/extensions.php how your documentation could look like...

Taifun

Taifun

unread,
Jan 23, 2017, 5:18:35 PM1/23/17
to MIT App Inventor Forum
Next version will have videophone call 
 
I just looked at the extension: it provides only one method, which means, my recommendation is to use the built in phonecall component instead...


Taifun
Reply all
Reply to author
Forward
0 new messages