Indicates whether the device is able to open a specific URL
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.
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.
As from GeneXus X Evolution 3 RC (codename: Tilo)