queryBundleActiveStates(begin: number, end: number): Promise<Array<BundleActiveState>>
| Queries the event collection of all applications through time interval(Promise).
|
queryBundleStateInfos(begin: number, end: number, callback: AsyncCallback<BundleActiveInfoResponse>): void
| Uses the start and end time to query the application usage time statistics(callback).
|
queryBundleStateInfos(begin: number, end: number): Promise<BundleActiveInfoResponse>
| Uses the start and end time to query the application usage time statistics(Promise).
|
queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveState>>): void
| Queries the event collection of the current application through the time interval(callback).
|
queryCurrentBundleActiveStates(begin: number, end: number): Promise<Array<BundleActiveState>>
| Queries the event collection of the current application through the time interval(Promise).
|
queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback<Array<BundleStateInfo>>): void
| Queries application usage duration statistics by time interval(callback).
|
queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise<Array<BundleStateInfo>>
| Queries application usage duration statistics by time interval(Promise).
|
queryAppUsagePriorityGroup(callback: AsyncCallback<number>): void
| Query the priority group of the application.
|
queryAppUsagePriorityGroup(): Promise<number>
| Query the priority group of the application.
|
isIdleState(bundleName: string, callback: AsyncCallback<boolean>): void
| Judges whether the application of the specified bundle name is currently idle(callback).
|
isIdleState(bundleName: string): Promise<boolean>
| Judges whether the application of the specified bundle name is currently idle(Promise).
|
isIdleStateSync(bundleName: string): boolean
| Judges whether the application of the specified bundle name is currently idle.
|
queryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void
| Query the statistical information of system events (sleep, wake-up, unlock and screen lock) according to the start and end time(callback).
|
queryBundleActiveEventStates(begin: number, end: number): Promise<Array<BundleActiveEventState>>
| Query the statistical information of system events (sleep, wake-up, unlock and screen lock) according to the start and end time(Promise).
|
queryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback<Array<BundleActiveEventState>>): void
| Query the application notification times according to the start and end time(callback).
|
queryAppNotificationNumber(begin: number, end: number): Promise<Array<BundleActiveEventState>>
| Query the application notification times according to the start and end time(Promise).
|
getRecentlyUsedModules(callback: AsyncCallback<Array<BundleActiveModuleInfo>>): void
| Query FA usage records. The maximum returned quantity does not exceed the value set by 1000.(callback)
|
getRecentlyUsedModules(maxNum: number, callback: AsyncCallback<Array<BundleActiveModuleInfo>>): void
| Query FA usage records. The maximum returned quantity does not exceed the value set by maxnum. FA usage records are sorted from near to far. The maximum maxnum is 1000.(callback)
|
getRecentlyUsedModules(maxNum?: number): Promise<Array<BundleActiveModuleInfo>>
| Query FA usage records. The maximum returned quantity does not exceed the value set by maxnum. FA usage records are sorted from near to far. The maximum maxnum is 1000. If the maxnum parameter is not filled in, the default maxnum is 1000(Promise).
|
queryAppUsagePriorityGroup(bundleName : string, callback: AsyncCallback<number>): void
| Query the group of the current application or the application of specified bundlename.
|
queryAppUsagePriorityGroup(bundleName : string): Promise<number>
| Query the group of the current application or the application of specified bundlename.
|
setBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback<void>): void
| Set the group of the specified application as the group provided by the parameter(callback).
|
setBundleGroup(bundleName: string, newGroup: GroupType): Promise<void>
| Set the group of the specified application as the group provided by the parameter(Promise).
|
registerGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>, callback: AsyncCallback<void>): void
| Register callback for application group change(callback).
|
registerGroupCallBack(callback: Callback<BundleActiveGroupCallbackInfo>): Promise<void>
| Register callback for application group change(Promise).
|
unRegisterGroupCallBack(callback: AsyncCallback<void>): void
| Unregister the registered application group callback(callback).
|
unRegisterGroupCallBack(): Promise<void>
| Unregister the registered application group callback(Promise).
|