mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
!14843 add universal drag switch
Merge pull request !14843 from hongtao/master
This commit is contained in:
commit
eeab618d2b
25
api/@ohos.deviceStatus.dragInteraction.d.ts
vendored
25
api/@ohos.deviceStatus.dragInteraction.d.ts
vendored
@ -158,6 +158,31 @@ declare namespace dragInteraction {
|
||||
* @since 11
|
||||
*/
|
||||
function getDataSummary(): Array<Summary>;
|
||||
|
||||
/**
|
||||
* Sets the master switch for enhancing the drag capability.
|
||||
*
|
||||
* @param { boolean } enabled Switch state.
|
||||
* @throws {BusinessError} 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* @syscap SystemCapability.Msdp.DeviceStatus.Drag
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 14
|
||||
*/
|
||||
function setDragSwitchState(enabled: boolean): void;
|
||||
|
||||
/**
|
||||
* Sets the app switch for enhancing the drag capability.
|
||||
*
|
||||
* @param { boolean } enabled Switch state.
|
||||
* @param { string } bundleName App bundle name.
|
||||
* @throws {BusinessError} 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
|
||||
* @syscap SystemCapability.Msdp.DeviceStatus.Drag
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 14
|
||||
*/
|
||||
function setAppDragSwitchState(enabled: boolean, bundleName: string): void;
|
||||
}
|
||||
|
||||
export default dragInteraction;
|
Loading…
Reference in New Issue
Block a user