!14843 add universal drag switch

Merge pull request !14843 from hongtao/master
This commit is contained in:
openharmony_ci 2024-11-26 14:20:00 +00:00 committed by Gitee
commit eeab618d2b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;