The Interop external object (which can be found in the KB Explorer under the Smart Devices API) is used for interacting with the device using procedural programming.
Warning: Deprecated. Use AppLifecycle.ApplicationState instead.
Runtime state of the application. It is based on the ApplicationState domain.
Gets or sets the brightness of the device screen.
Sends a message to a contact without specifying the channel (it can be a phone number, an email address, a Facebook account, etc).
Check HowTo: Using SendMessage from Interop in Smart Devices.
Plays a video from its URI (e.g. by 'http', 'file' or 'data' schemes).
Check HowTo: Using PlayVideo from Interop in SDApi for Smart Devices.
Return value |
None |
Parameters |
Video:URL
|
Plays an audio from its URI (e.g. by 'http', 'file' or 'data' schemes).
Check HowTo: Using the PlayAudio Method From Interop in Smart Devices Api.
Return value |
None |
Parameters |
Audio:URL
|
Opens the defined app for making calls with the input phone number.
Check HowTo: Using PlaceCall Method From Interop in Smart Devices API.
Return value |
None |
Parameters |
Phone:Phone
|
Sends a simple email through the native email client.
Check HowTo: Using the SendEmail Method From Interop in Smart Devices API.
Sends a more complex email through the native email client to multiple targets.
Check HowTo: Using SendEmailAdvanced from Interop in SDApi for Smart Devices.
Sends an SMS (Small Message System) to a target phone number.
Check HowTo: Using SendSMS From Interop in Smart Devices Api.
Displays a message to the end user.
Check HowTo: Using the Msg method from Interop in Smart Devices API.
Note: Parameter "OkButtonText" is optional and is only available from v16u9.
Displays a message to the end user and returns True if it was confirmed or False otherwise. If the returned value has not been used, the event execution is canceled.
Check HowTo: Using Confirm method from Interop in Smart Devices API.
Note: Parameters "OkButtonText" and "CancelButtonText" are optional and are only available from GeneXus 16 upgrade 9.
Opens a URL in the default web browser of the device.
Check HowTo: Open a Web Page in a New Browser Window from a Smart Devices Application.
Return value |
None |
Parameters |
Url:URL
|
Checks if a URL can be opened (True) or not (False).
Check Interop.CanOpen method.
Opens a URI content using the appropriate application depending on its scheme.
For instance, 'http' scheme can open a deep link or web content in a browser, 'mailto' will open the email client, 'maps' will open the maps app, etc. Check URI scheme definition and Interop.Open method article.
Return value |
None |
Parameters |
Url:URL
|
Enables you to clear the cache on the device.
Check HowTo: Using ClearCache Method From Interop in Smart Devices Api.
Return value |
None |
Parameters |
None
|
Sets a badge number on the application icon.
Check HowTo: Using iOS Badge operations.
Sets a badge text on a tab index when using a Menu object with Control Type = Tabs.
Check HowTo: Using iOS Badge operations.
Selects a tab by a code indicating its index when using a Menu object with Control Type = Tabs.
Check HowTo: Using iOS Badge operations.
Check HowTo: Using iOS Badge operations.
Performs the equivalent of what is automatically done to display errors when a Composite command fails in a Native Mobile application.
Check HowTo: Using the ShowError method from Interop in Native Mobile applications.
Events
It does not have any.
List of possible application states.
Active |
The application is in the foreground or received events. |
Inactive |
The application is in the foreground but not receiving events. This can happen when an interruption occurs (for example, an incoming call) or while switching from the background state. |
Background |
The application is not in the foreground. |