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

The PermissionsDelegates::onRequestPermission action. More...

#include <permissions_delegates.hpp>

Inheritance diagram for molybden::RequestPermissionAction:
molybden::Action

Public Member Functions

 RequestPermissionAction (std::unique_ptr< rpc::internal::Callback > callback)
 
void grant ()
 Grant the requested permission.
 
void deny ()
 Deny the requested permission.
 
void ask ()
 Ask web browser to handle this permission request.
 
- Public Member Functions inherited from molybden::Action
 Action (std::unique_ptr< rpc::internal::Callback > callback)
 

Additional Inherited Members

- Protected Attributes inherited from molybden::Action
std::unique_ptr< rpc::internal::Callback > callback_
 

Detailed Description

Member Function Documentation

◆ ask()

void molybden::RequestPermissionAction::ask ( )

Ask web browser to handle this permission request.

If the permission is requested for the first time for the currently loaded web page, a prompt dialog will be shown. The end user should decide whether grant the web page with the requested permissions or not. The decision will be remembered and used the next time the web page requests the permissions again.


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