unreal.MagicLeapPrivilegesFunctionLibrary

class unreal.MagicLeapPrivilegesFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Magic Leap Privileges Function Library

C++ Source:

  • Plugin: MagicLeap

  • Module: MagicLeapPrivileges

  • File: MagicLeapPrivilegesFunctionLibrary.h

classmethod check_privilege(privilege)bool

Check whether the application has the specified privilege. This does not solicit consent from the end-user and is non-blocking.

Parameters

privilege (MagicLeapPrivilege) – The privilege to check.

Returns

True if the privilege is granted, false otherwise.

Return type

bool

classmethod request_privilege(privilege)bool

Request the specified privilege. This may possibly solicit consent from the end-user; if so it will block.

Parameters

privilege (MagicLeapPrivilege) – The privilege to request.

Returns

True if the privilege is granted, false otherwise.

Return type

bool

classmethod request_privilege_async(privilege, result_delegate)bool

Request the specified privilege asynchronously. This may possibly solicit consent from the end-user. Result will be delivered to the specified delegate.

Parameters
Returns

True if the privilege request was successfully dispatched, false otherwise.

Return type

bool