diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index caef27b9eef1de822fac1fe2015b69285c0d8c47..f9073f101a47eec65066f63f7fe7a4f2edae7565 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -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.