Session.setDevicePermissionHandler method
Session › setDevicePermissionHandler
Unofficial
Sets the handler used to respond to device permission checks for the session.Signature:
setDevicePermissionHandler(handler: ((details: ElectronDevicePermissionHandlerHandlerDetails) => boolean) | null): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| handler | ((details: ElectronDevicePermissionHandlerHandlerDetails) => boolean) | null | The handler returning whether the device is permitted, or null to clear it. |
Returns: void