mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-03 13:12:09 +00:00
IssueNo: #I4R8OB
Description: fix app manager interface. Sig: SIG_ApplicationFramework Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: jiangwensai <jiangwensai@huawei.com> Change-Id: Ibc46b010f21d02251f6938724ade18744db88483
This commit is contained in:
parent
1448ff126b
commit
f0e1181d1f
11
api/@ohos.application.appManager.d.ts
vendored
11
api/@ohos.application.appManager.d.ts
vendored
@ -61,6 +61,17 @@ declare namespace appManager {
|
||||
*/
|
||||
function getForegroundApplications(callback: AsyncCallback<Array<AppStateData>>): void;
|
||||
function getForegroundApplications(): Promise<Array<AppStateData>>;
|
||||
|
||||
/**
|
||||
* Is user running in stability test.
|
||||
*
|
||||
* @devices phone, tablet, tv, wearable, car
|
||||
* @since 8
|
||||
* @SysCap appexecfwk
|
||||
* @return Returns true if user is running stability test.
|
||||
*/
|
||||
function isRunningInStabilityTest(callback: AsyncCallback<boolean>): void;
|
||||
function isRunningInStabilityTest(): Promise<boolean>;
|
||||
}
|
||||
|
||||
export default appManager;
|
||||
|
Loading…
Reference in New Issue
Block a user