MLPermissions
NameSpace: MagicLeap
Inherits from:
MLAutoAPISingleton< MLPermissions >,
MLLazySingleton< T >
Public Methods
MLResult CheckPermission
public static MLResult CheckPermission(
string permission
)
Parameters
Type | Name | Description |
---|---|---|
string | permission |
delegate void OnPermissionDeniedAndDontAskAgainDelegate
public delegate void OnPermissionDeniedAndDontAskAgainDelegate(
string permission
)
Parameters
Type | Name | Description |
---|---|---|
string | permission |
delegate void OnPermissionDeniedDelegate
public delegate void OnPermissionDeniedDelegate(
string permission
)
Parameters
Type | Name | Description |
---|---|---|
string | permission |
delegate void OnPermissionGrantedDelegate
public delegate void OnPermissionGrantedDelegate(
string permission
)
Parameters
Type | Name | Description |
---|---|---|
string | permission |
MLResult RequestPermission
public static MLResult RequestPermission(
string permission,
Callbacks callbacks
)
Parameters
Type | Name | Description |
---|---|---|
string | permission | |
Callbacks | callbacks |
Protected Methods
StartAPI
Do API-specific creation/initialization of ML resources for this API, such as creating trackers, etc. Called automatically the first time Instance is accessed. Error checking on the return value is performed in the base class.
protected virtual override MLResult.Code StartAPI()
Reimplements: StartAPI
StopAPI
API-specific cleanup. Will be called whenever MLDevice is destroyed (at the latest, when the application is shutting down). Error checking on the return value is performed in the base class.
protected virtual override MLResult.Code StopAPI()
Reimplements: StopAPI
Update
Update function that will run once per Unity frame.
protected virtual override void Update()
Reimplements: Update