1c29fa5a6Sopenharmony_ci/* 2c29fa5a6Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 3c29fa5a6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4c29fa5a6Sopenharmony_ci * you may not use this file except in compliance with the License. 5c29fa5a6Sopenharmony_ci * You may obtain a copy of the License at 6c29fa5a6Sopenharmony_ci * 7c29fa5a6Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8c29fa5a6Sopenharmony_ci * 9c29fa5a6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10c29fa5a6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11c29fa5a6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12c29fa5a6Sopenharmony_ci * See the License for the specific language governing permissions and 13c29fa5a6Sopenharmony_ci * limitations under the License. 14c29fa5a6Sopenharmony_ci */ 15c29fa5a6Sopenharmony_ci 16c29fa5a6Sopenharmony_ci /** 17c29fa5a6Sopenharmony_ci * Set the number of touchpad scrolling rows. 18c29fa5a6Sopenharmony_ci * 19c29fa5a6Sopenharmony_ci * @param { number } rows - Indicates the number of touchpad scrolling rows. 20c29fa5a6Sopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 21c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 22c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 23c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 24c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 25c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 26c29fa5a6Sopenharmony_ci * @since 13 27c29fa5a6Sopenharmony_ci */ 28c29fa5a6Sopenharmony_ci function setTouchpadScrollRows(rows: number, callback: AsyncCallback<void>): void; 29c29fa5a6Sopenharmony_ci 30c29fa5a6Sopenharmony_ci /** 31c29fa5a6Sopenharmony_ci * Set the number of touchpad scrolling rows. 32c29fa5a6Sopenharmony_ci * 33c29fa5a6Sopenharmony_ci * @param { number } rows - Indicates the number of touchpad scrolling rows. 34c29fa5a6Sopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 35c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 36c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 37c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 38c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 39c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 40c29fa5a6Sopenharmony_ci * @since 13 41c29fa5a6Sopenharmony_ci */ 42c29fa5a6Sopenharmony_ci function setTouchpadScrollRows(rows: number): Promise<void>; 43c29fa5a6Sopenharmony_ci 44c29fa5a6Sopenharmony_ci /** 45c29fa5a6Sopenharmony_ci * Get the number of touchpad scrolling rows. 46c29fa5a6Sopenharmony_ci * 47c29fa5a6Sopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 48c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 49c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 50c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 51c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 52c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 53c29fa5a6Sopenharmony_ci * @since 13 54c29fa5a6Sopenharmony_ci */ 55c29fa5a6Sopenharmony_ci function getTouchpadScrollRows(callback: AsyncCallback<number>): void; 56c29fa5a6Sopenharmony_ci 57c29fa5a6Sopenharmony_ci /** 58c29fa5a6Sopenharmony_ci * Get the number of touchpad scrolling rows. 59c29fa5a6Sopenharmony_ci * 60c29fa5a6Sopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 61c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 62c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 63c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 64c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 65c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 66c29fa5a6Sopenharmony_ci * @since 13 67c29fa5a6Sopenharmony_ci */ 68c29fa5a6Sopenharmony_ci function getTouchpadScrollRows(): Promise<number>; 69c29fa5a6Sopenharmony_ci 70c29fa5a6Sopenharmony_ci /** 71c29fa5a6Sopenharmony_ci * Set touchpad three finger switch state. 72c29fa5a6Sopenharmony_ci * 73c29fa5a6Sopenharmony_ci * @param { boolean } state - Indicates whether the touchpad three finger switch is enabled. 74c29fa5a6Sopenharmony_ci * <br>true: user can use three finger function. otherwise can't use. 75c29fa5a6Sopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 76c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 77c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 78c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 79c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 80c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 81c29fa5a6Sopenharmony_ci * @since 13 82c29fa5a6Sopenharmony_ci */ 83c29fa5a6Sopenharmony_ci function setTouchpadThreeFingersTapSwitch(state: boolean, callback: AsyncCallback<void>): void; 84c29fa5a6Sopenharmony_ci 85c29fa5a6Sopenharmony_ci /** 86c29fa5a6Sopenharmony_ci * Set touchpad three finger switch state. 87c29fa5a6Sopenharmony_ci * 88c29fa5a6Sopenharmony_ci * @param { boolean } state - Indicates whether the touchpad three finger switch is enabled. 89c29fa5a6Sopenharmony_ci * <br>true: user can use three finger function. otherwise can't use. 90c29fa5a6Sopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 91c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 92c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 93c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 94c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 95c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 96c29fa5a6Sopenharmony_ci * @since 13 97c29fa5a6Sopenharmony_ci */ 98c29fa5a6Sopenharmony_ci function setTouchpadThreeFingersTapSwitch(state: boolean): Promise<void>; 99c29fa5a6Sopenharmony_ci 100c29fa5a6Sopenharmony_ci /** 101c29fa5a6Sopenharmony_ci * Get touchpad three finger switch state. 102c29fa5a6Sopenharmony_ci * 103c29fa5a6Sopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 104c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 105c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 106c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 107c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 108c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 109c29fa5a6Sopenharmony_ci * @since 13 110c29fa5a6Sopenharmony_ci */ 111c29fa5a6Sopenharmony_ci function getTouchpadThreeFingersTapSwitch(callback: AsyncCallback<boolean>): void; 112c29fa5a6Sopenharmony_ci 113c29fa5a6Sopenharmony_ci /** 114c29fa5a6Sopenharmony_ci * Get touchpad three finger switch state. 115c29fa5a6Sopenharmony_ci * 116c29fa5a6Sopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 117c29fa5a6Sopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 118c29fa5a6Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 119c29fa5a6Sopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 120c29fa5a6Sopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 121c29fa5a6Sopenharmony_ci * @systemapi hide for inner use. 122c29fa5a6Sopenharmony_ci * @since 13 123c29fa5a6Sopenharmony_ci */ 124c29fa5a6Sopenharmony_ci function getTouchpadThreeFingersTapSwitch(): Promise<boolean>;