native.canShowPopup() — Safari View

Type Function
Library native.*
Return value Boolean
Revision 2018.3381
Keywords native, canShowPopup, safari, safariView, webView

Overview

Returns whether or not the popup type can be shown.

Syntax

native.canShowPopup( name )
name (required)

String. The string name of the popup to be shown. For the Safari View plugin, use "safariView".

Example

if native.canShowPopup( "safariView" ) then
    native.showPopup( "safariView", "https://coronalabs.com" )
end