unreal.AndroidPermissionFunctionLibrary

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

Bases: unreal.BlueprintFunctionLibrary

Android Permission Function Library

C++ Source:

  • Plugin: AndroidPermission
  • Module: AndroidPermission
  • File: AndroidPermissionFunctionLibrary.h
classmethod acquire_permissions(permissions) → AndroidPermissionCallbackProxy

try to acquire permissions and return a singleton callback proxy object containing OnPermissionsGranted delegate

Parameters:permissions (Array(str)) –
Returns:
Return type:AndroidPermissionCallbackProxy
classmethod check_permission(permission) → bool

check if the permission is already granted

Parameters:permission (str) –
Returns:
Return type:bool