Application:canOpenUrl

From GiderosMobile
Revision as of 16:54, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source" to "</syntaxhighlight")

Available since: Gideros 2013.06
Class: Application

Description

Tests if it is possible to open provided url using Application:openUrl method (it checks only app permissions, so 'true' may be returned even if device is offline).

<source lang="lua"> application:canOpenUrl(url) </syntaxhighlight>

Parameters

url: (string) url to test if can be opened

Example

<source lang="lua"> print(application:canOpenUrl("http://w3c.org")) </syntaxhighlight>