Files
trezor-suite/docs/packages/connect/methods/setBusy.md
2023-08-10 11:33:05 +02:00

692 B

Set busy

Show a "Do not disconnect" dialog instead of the standard homescreen.

const result = await TrezorConnect.setBusy(params);

:note: Supported only by T2T1 with Firmware 2.5.3 or higher!

Params

Optional common params

  • expiry_msoptional number

    The time in milliseconds after which the dialog will automatically disappear. Overrides any previously set expiry. If not set, then the dialog is hidden.

Result

{
    success: true,
    payload: {
        message: 'Success',
    }
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}