MōBrowser API
Loading...
Searching...
No Matches
mobrowser::RequestPermissionAction Class Reference

The PermissionsDelegates::onRequestPermission action. More...

#include <permissions_delegates.hpp>

Inheritance diagram for mobrowser::RequestPermissionAction:
mobrowser::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 mobrowser::Action
 Action (std::unique_ptr< rpc::internal::Callback > callback)
 

Additional Inherited Members

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

Detailed Description

Member Function Documentation

◆ ask()

void mobrowser::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: