Skip to main content
Version: 12 Dec 2024

Permissions

NameSpace: Android

Public Methods

bool CheckPermission

public static bool CheckPermission(
string permission
)

Parameters

TypeNameDescription
stringpermission

void RequestPermission

public static void RequestPermission(
string permission,
Action< string > onPermissionGranted =null,
Action< string > onPermissionDenied =null,
Action< string > onPermissionDeniedDontAskAgain =null
)

Parameters

TypeNameDescription
stringpermission
Action< string >onPermissionGranted
Action< string >onPermissionDenied
Action< string >onPermissionDeniedDontAskAgain

void RequestPermissions

public static void RequestPermissions(
string [] permissions,
Action< string > onPermissionGranted =null,
Action< string > onPermissionDenied =null,
Action< string > onPermissionDeniedDontAskAgain =null
)

Parameters

TypeNameDescription
string []permissions
Action< string >onPermissionGranted
Action< string >onPermissionDenied
Action< string >onPermissionDeniedDontAskAgain

Public Attributes

DepthCamera


public const string DepthCamera = "com.magicleap.permission.DEPTH_CAMERA";


EyeCamera


public const string EyeCamera = "com.magicleap.permission.EYE_CAMERA";


EyeTracking


public const string EyeTracking = "com.magicleap.permission.EYE_TRACKING";


FacialExpression


public const string FacialExpression = "com.magicleap.permission.FACIAL_EXPRESSION";


HandTracking


public const string HandTracking = "com.magicleap.permission.HAND_TRACKING";


MarkerTracking


public const string MarkerTracking = "com.magicleap.permission.MARKER_TRACKING";


PupilSize


public const string PupilSize = "com.magicleap.permission.PUPIL_SIZE";


SpaceImportExport


public const string SpaceImportExport = "com.magicleap.permission.SPACE_IMPORT_EXPORT";


SpaceManager


public const string SpaceManager = "com.magicleap.permission.SPACE_MANAGER";


SpatialAnchors


public const string SpatialAnchors = "com.magicleap.permission.SPATIAL_ANCHOR";


SpatialMapping


public const string SpatialMapping = "com.magicleap.permission.SPATIAL_MAPPING";


SystemNotification


public const string SystemNotification = "com.magicleap.permission.SYSTEM_NOTIFICATION";


VoiceInput


public const string VoiceInput = "com.magicleap.permission.VOICE_INPUT";


WebView


public const string WebView = "com.magicleap.permission.WEBVIEW";