From 0a16fc7e3cc0108d8f62baf2c25840a9681c18cc Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 22 Aug 2018 19:07:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=80=80=E5=87=BA=E9=94=81=E5=AE=9A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report-app.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api/report-app.ts b/src/api/report-app.ts index 1f4bacc6..b85eb7db 100644 --- a/src/api/report-app.ts +++ b/src/api/report-app.ts @@ -5,6 +5,8 @@ export interface ReportAppAPI { start(...params: any[]): Promise essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise finish(...params: any[]): Promise + requestLeavingLock(): Promise + releaseLeavingLock(): Promise } class HostAPI extends APIBase { @@ -21,6 +23,14 @@ class HostAPI extends APIBase { return this.call('finish', ...params) } + requestLeavingLock() { + return this.call('requestLeavingLock') + } + + releaseLeavingLock() { + return this.call('releaseLeavingLock') + } + } export const hostAPI: IFactory = (sdk: AppSDK) => {