Official Content

The PlaceCall method offered by the Interop external object enables making a call if the app is running on a device that supports that feature.

image_202351714321_1_png

It receives a parameter based on the Phone domain.

The following steps guide you on how to use the PlaceCall method.

Step 1

Create a new Panel object.

Step 2

Define a variable based on the Phone domain and insert it in the Panel Layout. This variable will be entered by the user with the phone number to call.

Step 3

Insert a button in the Layout with the following event associated with it :

Event 'Call'
    Interop.PlaceCall(&Phone)
EndEvent

Done! The entry panel will accept a phone number and when the Call button is tapped, a call will be started.

Screenshots

Android

PlaceCall - Interop - Android 7

Considerations

When using Apple, once the phone call ends the application is redirected to the native "phone call history" application, it does not go back to the original application.

Availability

GeneXus X Evolution 2 Upgrade 2.

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant