Skip to main content
The Consent screen class provides methods associated with the consent screen.
Import and instantiate the Consent screen class:

Properties

The Consent screen class properties are:

Methods

The Consent screen class methods are:

accept( options? )

This method submits the user’s decision to accept the requested permissions.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

deny( options? )

This method submits the user’s decision to deny the requested permissions.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

getError( options? )

This method retrieves the array of transaction errors from context or an empty array if none exist.