Molybden API
Loading...
Searching...
No Matches
molybden::PermissionsDelegates Class Reference

A class that contains all permission delegates. More...

#include <permissions_delegates.hpp>

Inheritance diagram for molybden::PermissionsDelegates:
molybden::Permissions

Public Attributes

Delegate< RequestPermissionArgs, RequestPermissionActiononRequestPermission
 Invoked when a web page requests a permission to enable some functionality such as geolocation or desktop notifications on a web page.
 

Detailed Description

A class that contains all permission delegates.

Member Data Documentation

◆ onRequestPermission

Delegate<RequestPermissionArgs, RequestPermissionAction> molybden::PermissionsDelegates::onRequestPermission

Invoked when a web page requests a permission to enable some functionality such as geolocation or desktop notifications on a web page.

Use the following approach to register a callback:

permissions->onRequestPermission = [](const RequestPermissionArgs& args, RequestPermissionAction action) {};
The PermissionsDelegates::onRequestPermission action.
Definition permissions_delegates.hpp:42
The PermissionsDelegates::onRequestPermission action arguments.
Definition permissions_delegates.hpp:22

In order to unregister the callback, use the reset() method:

permissions->onRequestPermission.reset();

The documentation for this class was generated from the following file: