Back

GetPermission

Hello World

GetPermission accepts a list of 'dangerus' classified permissions and returns a list of ungranted permissions in the callback function, or in case of only “ExtSDCard” the path URI of the user-selected folder.

app.GetPermission( type, callback )

See Also: CheckPermission

Example - Get ExtSDCard Permission and User-Selected Path

function OnStart()
{
    var path = app.GetPermission( "extsdcard", OnPermission );
}

function OnPermission( pathURI )
{
    app.Alert( pathURI );
}
    Copy     Copy All       Run      
string: comma “,” separated: “Camera” or “ExtSDcard” or “Network” or “Storage” or “Overlay” or “SMS” or “ExtSDcard” or “Location” or “Calendar” or “Body” or “Contacts” or “Record” or “Phone” or “Accounts” or “License”
function( ungranted )