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

The BrowserDelegates::onRequestPdfPassword action. More...

#include <browser_delegates.hpp>

Inheritance diagram for mobrowser::RequestPdfPasswordAction:
mobrowser::Action

Public Member Functions

 RequestPdfPasswordAction (std::unique_ptr< rpc::internal::Callback > callback)
 
void password (const std::string &password)
 Use the given password to load the encrypted PDF document.
 
void cancel ()
 Cancel the request for the password.
 
void prompt ()
 Display a native prompt dialog where the end user can provide the password to open the encrypted PDF document.
 
- 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

◆ cancel()

void mobrowser::RequestPdfPasswordAction::cancel ( )

Cancel the request for the password.

In this case the browser will fail to load the frame with the encrypted PDF document.

◆ password()

void mobrowser::RequestPdfPasswordAction::password ( const std::string &  password)

Use the given password to load the encrypted PDF document.

If the provided password is incorrect, the browser will fail to load the frame with the encrypted PDF document.


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