checkPermissions
checkPermissions
ConstcheckPermissions(name?):Promise<null | boolean>
Asynchronously returns whether we have permissions to access the specified resource. Some common parameter values for name are "camera", "microphone", and "speaker". In those cases, prefer the dedicated functions checkCameraPermissions, checkMicrophonePermissions, and checkSpeakerPermissions.
Parameters
name
Name of the resource.
Returns
Promise<null | boolean>