fake-permissions
    Preparing search index...

    Type Alias HandleAccessRequest

    HandleAccessRequest: (
        dialog: AccessDialog,
        descriptor: PermissionDescriptor,
    ) => Promise<HandleAccessRequestComplete | void>

    Emulate a user's interaction with a permission access dialog.

    This callback is called when access to a permission is requested, and the permission's access status is "PROMPT". Any other status will not result in a call to this callback.

    To emulate a user interaction, the callback can inspect the descriptor if desired, and call methods on dialog to make a choice about permission access. If the callback ends without calling any of the dialog methods, it's equivalent to calling AccessDialog.dismiss.

    Delayed interactions can also be emulated by waiting asynchronously before interacting with the dialog. Real users never respond instantly, so this can be used to emulate a more realistic user interaction.

    Type declaration

    User.setAccessRequestHandler to update the access request handler for a user.