Interop.CanOpen method

Official Content
This documentation is valid for:

Indicates whether the device is able to open a specific URL

Syntax

Interop.CanOpen(<URL>)

The <URL> parameter is the URL we want to open. The method checks whether it can be opened or not.

Type returned
Boolean, indicating if the URL can be opened or not.

Example

Event 'OpenTweetGenexus'
Composite
  &AppInstalled = Interop.CanOpen("twitter://user?screen_name=GeneXus")
  if &AppInstalled
   Interop.Open("twitter://user?screen_name=GeneXus")
  endif
EndComposite
EndEventt

In this example, the URL "twitter://user?screen_name=GeneXus" can be opened only if the Twitter app is installed.

Availability

As from GeneXus X Evolution 3 RC (codename: Tilo)

Scope

Objects: Smart Devices objects only in user events
Platforms:  Android and iOS

Notes

See also

Sample


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.