Constructor

constructor(extension)

Parameter

extension - ExtensionWrapper

An instance of ExtensionWrapper. This is a pointer indicated to this class's holder.


Property

extension

Type: ExtensionWrapper
Description: ExtensionWrapper instance passed by constructor.


Methods

async link(param)

Description

Connect user to the extension.

Parameters :

param - Any:

Additional data required by extension.

Returns :

Promise<Result<String, Status>>:

Account loaded in the extension will be set into the data field of Result if success.

async unlink()

Description

Disconnect user and the web extension.

Returns :

Promise<Result<Bool, Status>>:

Boolean value true will be set into the data field of Result if success.