!2907 ui service整改

Merge pull request !2907 from 熊欢/master
This commit is contained in:
openharmony_ci 2022-10-08 08:32:14 +00:00 committed by Gitee
commit f212e1f15e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -510,6 +510,38 @@ declare namespace deviceManager {
*/
verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback<{deviceId: string, level: number}>): void;
/**
* Set user Operation from devicemanager Sea, this interface can only be used by devicemanager Sea.
*
* @since 9
* @param operateAction User Operation Actions.
* @param params Indicates the input param of the user.
* @throws {BusinessError} 401 - Input parameter error.
* @systemapi this method can be used only by system applications.
*/
setUserOperation(operateAction: number, params: string): void;
/**
* Register a callback from deviceManager service so that the devicemanager ui can be notified when ui statue
* changes.
*
* @since 9
* @param callback Indicates the devicemanager ui state to register.
* @throws {BusinessError} 401 - Input parameter error.
* @systemapi this method can be used only by system applications.
*/
on(type: 'uiStateChange', callback: Callback<{ param: string}>): void;
/**
* Unregister uiStatueChange, this interface can only be used by devicemanager ui.
*
* @since 9
* @param callback Indicates the devicemanager ui state to unregister.
* @throws {BusinessError} 401 - Input parameter error.
* @systemapi this method can be used only by system applications.
*/
off(type: 'uiStateChange', callback?: Callback<{ param: string}>): void;
/**
* Register a device state callback so that the application can be notified upon device state changes based on
* the application bundle name.