Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PlatformService Interface Reference

Public Member Functions

proto native bool GetPrivilegeAsync (UserPrivilege privilege, PlatformRequestCallback callback)
 Requests privilege from platform.
 
proto native bool GetPrivilege (UserPrivilege privilege)
 Checks for given user privilege without invoking any UI.
 
proto native void OpenBrowser (string url)
 Open native web browser on specified url.
 
proto native PlatformKind GetLocalPlatformKind ()
 Returns.
 

Member Function Documentation

◆ GetLocalPlatformKind()

proto native PlatformKind PlatformService.GetLocalPlatformKind ( )

Returns.

See also
PlatformKind for this particular executable.

◆ GetPrivilege()

proto native bool PlatformService.GetPrivilege ( UserPrivilege  privilege)

Checks for given user privilege without invoking any UI.

Parameters
[privilege]Requested privilege
Returns
Returns true if the privilege is granted

◆ GetPrivilegeAsync()

proto native bool PlatformService.GetPrivilegeAsync ( UserPrivilege  privilege,
PlatformRequestCallback  callback 
)

Requests privilege from platform.

Implemented as queue. When the result for one type of privilege is received, all requests of that type receive the result.

Parameters
[privilege]Requested privilege
[callback]Callback object used to signalize result
Returns
Returns if the request was successfuly queued

◆ OpenBrowser()

proto native void PlatformService.OpenBrowser ( string  url)

Open native web browser on specified url.


The documentation for this interface was generated from the following file: