ClientController Actions
2 actions registered.
| Name | Deprecated |
|---|---|
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:
| Name | Description |
|---|---|
open | Whether the MetaMask UI is open. |
Handler signature:
(open: boolean) => void