Version: 1.5
LanguageEnglish
  • C#

Permission

struct in UnityEngine.OpenHarmony

/

Implemented in:UnityEngine.OpenHarmonyJSModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Structure describing a permission that requires user authorization.

Static Properties

AccessBluetoothUsed when requesting permission or checking if permission has been granted to accesss buletooth.
CameraUsed when requesting permission or checking if permission has been granted to use the camera.
CoarseLocationUsed when requesting permission or checking if permission has been granted to use the users location with coarse granularity.
ExternalAudioReadUsed when requesting permission or checking if permission has been granted to read audio from external storage such as a SD card.
ExternalAudioWriteUsed when requesting permission or checking if permission has been granted to write audio to external storage such as a SD card.
ExternalImageVideoReadUsed when requesting permission or checking if permission has been granted to read image and video from external storage such as a SD card.
ExternalImageVideoWriteUsed when requesting permission or checking if permission has been granted to write image and video to external storage such as a SD card.
FineLocationUsed when requesting permission or checking if permission has been granted to use the users location with high precision.
MicrophoneUsed when requesting permission or checking if permission has been granted to use the microphone.
PasteboardReadUsed when requesting permission or checking if permission has been granted to read pasteboard.

Static Methods

CheckUserAuthorizedPermissionCheck if the user has granted access to a device resource or information that requires authorization.
HasUserAuthorizedPermissionCheck if the user has granted access to a device resource or information that requires authorization.
RequestUserPermissionRequest the user to grant access to a device resource or information that requires authorization.
RequestUserPermissionsRequest the user to grant access to multiple device resources or information that requires authorization.