mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-25 19:52:16 +00:00
commit
f212e1f15e
32
api/@ohos.distributedHardware.deviceManager.d.ts
vendored
32
api/@ohos.distributedHardware.deviceManager.d.ts
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user