Skip to main content

ClientController Actions

2 actions registered.

NameDeprecated
getState
setUiOpen

ClientController:getState​

Package: @metamask/client-controller

Retrieves the state of the ClientController.

Handler signature:

() => ClientControllerState

ClientController:setUiOpen​

Package: @metamask/client-controller

Updates state with whether the MetaMask UI is open.

This method should be called when the user has opened the first window or screen containing the MetaMask UI, or closed the last window or screen containing the MetaMask UI.

Parameters:

NameDescription
openWhether the MetaMask UI is open.

Handler signature:

(open: boolean) => void