diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 698c80295cc9084b7d813a16f3006accd7e6016f..de700f570ff92c322b4bb6bbf5d5381d3f69a3d7 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -477,6 +477,31 @@ declare namespace deviceManager { */ verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback<{deviceId: string, level: number}>): void; + /** + * Set user Operation from devicemanager Sea, this interface can only used by devicemanager Sea. + * + * @param operateAction User Operation Actions. + * @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 Sea can be notified when some events happen. + * this interface can only used by devicemanager Sea. + * + * @param callback for devicemanager Sea to register. + * @systemapi this method can be used only by system applications. + */ + on(type: 'seaStatueChange', callback: Callback<{ param: string}>): void; + + /** + * UnRegister dmSeaCallback, this interface can only used by devicemanager Sea. + * + * @param callback for devicemanager Sea to register. + * @systemapi this method can be used only by system applications. + */ + off(type: 'seaStatueChange', 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.