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: Objects for Native Mobile applications development only in user events
Platforms:  Android and iOS

Notes

See also

Sample