@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
19 lines • 840 B
TypeScript
import { Observable } from "rxjs";
import Transport from "@ledgerhq/hw-transport";
/**
* Force the device to quit the currently opened app.
*
* If the device is already on the dashboard it does nothing and returns 9000.
*
* On firmware without 0x5515 (no locked device response):
* If the device is locked, it will return 0x9000.
* If the device is locked, and an app is opened, it will also return 9000 and the app will be closed when unlocked.
*
* On firmware with 0x5515 (locked device response):
* If the device is locked, it will return 0x5515.
* If the device is locked, and an app is opened, it will return 0x5515 and the app will **not** be closed when unlocked.
*
* @param transport a Transport instance
*/
export declare function quitApp(transport: Transport): Observable<void>;
//# sourceMappingURL=quitApp.d.ts.map