161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit InputKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport type { AsyncCallback } from './@ohos.base'; 2261847f8eSopenharmony_ciimport type image from './@ohos.multimedia.image'; 2361847f8eSopenharmony_ci 2461847f8eSopenharmony_ci/** 2561847f8eSopenharmony_ci * Declares interfaces related to mouse pointer attributes. 2661847f8eSopenharmony_ci * 2761847f8eSopenharmony_ci * @namespace pointer 2861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 2961847f8eSopenharmony_ci * @since 9 3061847f8eSopenharmony_ci */ 3161847f8eSopenharmony_ci/** 3261847f8eSopenharmony_ci * Declares interfaces related to mouse pointer attributes. 3361847f8eSopenharmony_ci * 3461847f8eSopenharmony_ci * @namespace pointer 3561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 3661847f8eSopenharmony_ci * @atomicservice 3761847f8eSopenharmony_ci * @since 12 3861847f8eSopenharmony_ci */ 3961847f8eSopenharmony_cideclare namespace pointer { 4061847f8eSopenharmony_ci /** 4161847f8eSopenharmony_ci * Pointer style. 4261847f8eSopenharmony_ci * 4361847f8eSopenharmony_ci * @enum { number } 4461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 4561847f8eSopenharmony_ci * @since 9 4661847f8eSopenharmony_ci */ 4761847f8eSopenharmony_ci /** 4861847f8eSopenharmony_ci * Pointer style. 4961847f8eSopenharmony_ci * 5061847f8eSopenharmony_ci * @enum { number } 5161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 5261847f8eSopenharmony_ci * @atomicservice 5361847f8eSopenharmony_ci * @since 12 5461847f8eSopenharmony_ci */ 5561847f8eSopenharmony_ci enum PointerStyle { 5661847f8eSopenharmony_ci /** 5761847f8eSopenharmony_ci * Default 5861847f8eSopenharmony_ci * 5961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 6061847f8eSopenharmony_ci * @since 9 6161847f8eSopenharmony_ci */ 6261847f8eSopenharmony_ci DEFAULT, 6361847f8eSopenharmony_ci 6461847f8eSopenharmony_ci /** 6561847f8eSopenharmony_ci * East arrow 6661847f8eSopenharmony_ci * 6761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 6861847f8eSopenharmony_ci * @since 9 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci EAST, 7161847f8eSopenharmony_ci 7261847f8eSopenharmony_ci /** 7361847f8eSopenharmony_ci * West arrow 7461847f8eSopenharmony_ci * 7561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 7661847f8eSopenharmony_ci * @since 9 7761847f8eSopenharmony_ci */ 7861847f8eSopenharmony_ci WEST, 7961847f8eSopenharmony_ci 8061847f8eSopenharmony_ci /** 8161847f8eSopenharmony_ci * South arrow 8261847f8eSopenharmony_ci * 8361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 8461847f8eSopenharmony_ci * @since 9 8561847f8eSopenharmony_ci */ 8661847f8eSopenharmony_ci SOUTH, 8761847f8eSopenharmony_ci 8861847f8eSopenharmony_ci /** 8961847f8eSopenharmony_ci * North arrow 9061847f8eSopenharmony_ci * 9161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 9261847f8eSopenharmony_ci * @since 9 9361847f8eSopenharmony_ci */ 9461847f8eSopenharmony_ci NORTH, 9561847f8eSopenharmony_ci 9661847f8eSopenharmony_ci /** 9761847f8eSopenharmony_ci * East-west arrow 9861847f8eSopenharmony_ci * 9961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 10061847f8eSopenharmony_ci * @since 9 10161847f8eSopenharmony_ci */ 10261847f8eSopenharmony_ci WEST_EAST, 10361847f8eSopenharmony_ci 10461847f8eSopenharmony_ci /** 10561847f8eSopenharmony_ci * North-south arrow 10661847f8eSopenharmony_ci * 10761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 10861847f8eSopenharmony_ci * @since 9 10961847f8eSopenharmony_ci */ 11061847f8eSopenharmony_ci NORTH_SOUTH, 11161847f8eSopenharmony_ci 11261847f8eSopenharmony_ci /** 11361847f8eSopenharmony_ci * North-east arrow 11461847f8eSopenharmony_ci * 11561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 11661847f8eSopenharmony_ci * @since 9 11761847f8eSopenharmony_ci */ 11861847f8eSopenharmony_ci NORTH_EAST, 11961847f8eSopenharmony_ci 12061847f8eSopenharmony_ci /** 12161847f8eSopenharmony_ci * North-west arrow 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 12461847f8eSopenharmony_ci * @since 9 12561847f8eSopenharmony_ci */ 12661847f8eSopenharmony_ci NORTH_WEST, 12761847f8eSopenharmony_ci 12861847f8eSopenharmony_ci /** 12961847f8eSopenharmony_ci * South-east arrow 13061847f8eSopenharmony_ci * 13161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 13261847f8eSopenharmony_ci * @since 9 13361847f8eSopenharmony_ci */ 13461847f8eSopenharmony_ci SOUTH_EAST, 13561847f8eSopenharmony_ci 13661847f8eSopenharmony_ci /** 13761847f8eSopenharmony_ci * South-west arrow 13861847f8eSopenharmony_ci * 13961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 14061847f8eSopenharmony_ci * @since 9 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci SOUTH_WEST, 14361847f8eSopenharmony_ci 14461847f8eSopenharmony_ci /** 14561847f8eSopenharmony_ci * Northeast and southwest adjustment 14661847f8eSopenharmony_ci * 14761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 14861847f8eSopenharmony_ci * @since 9 14961847f8eSopenharmony_ci */ 15061847f8eSopenharmony_ci NORTH_EAST_SOUTH_WEST, 15161847f8eSopenharmony_ci 15261847f8eSopenharmony_ci /** 15361847f8eSopenharmony_ci * Northwest and southeast adjustment 15461847f8eSopenharmony_ci * 15561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 15661847f8eSopenharmony_ci * @since 9 15761847f8eSopenharmony_ci */ 15861847f8eSopenharmony_ci NORTH_WEST_SOUTH_EAST, 15961847f8eSopenharmony_ci 16061847f8eSopenharmony_ci /** 16161847f8eSopenharmony_ci * Cross (accurate selection) 16261847f8eSopenharmony_ci * 16361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 16461847f8eSopenharmony_ci * @since 9 16561847f8eSopenharmony_ci */ 16661847f8eSopenharmony_ci CROSS, 16761847f8eSopenharmony_ci 16861847f8eSopenharmony_ci /** 16961847f8eSopenharmony_ci * Copy 17061847f8eSopenharmony_ci * 17161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 17261847f8eSopenharmony_ci * @since 9 17361847f8eSopenharmony_ci */ 17461847f8eSopenharmony_ci CURSOR_COPY, 17561847f8eSopenharmony_ci 17661847f8eSopenharmony_ci /** 17761847f8eSopenharmony_ci * Forbid 17861847f8eSopenharmony_ci * 17961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 18061847f8eSopenharmony_ci * @since 9 18161847f8eSopenharmony_ci */ 18261847f8eSopenharmony_ci CURSOR_FORBID, 18361847f8eSopenharmony_ci 18461847f8eSopenharmony_ci /** 18561847f8eSopenharmony_ci * Sucker 18661847f8eSopenharmony_ci * 18761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 18861847f8eSopenharmony_ci * @since 9 18961847f8eSopenharmony_ci */ 19061847f8eSopenharmony_ci COLOR_SUCKER, 19161847f8eSopenharmony_ci 19261847f8eSopenharmony_ci /** 19361847f8eSopenharmony_ci * Grabbing hand 19461847f8eSopenharmony_ci * 19561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 19661847f8eSopenharmony_ci * @since 9 19761847f8eSopenharmony_ci */ 19861847f8eSopenharmony_ci HAND_GRABBING, 19961847f8eSopenharmony_ci 20061847f8eSopenharmony_ci /** 20161847f8eSopenharmony_ci * Opening hand 20261847f8eSopenharmony_ci * 20361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 20461847f8eSopenharmony_ci * @since 9 20561847f8eSopenharmony_ci */ 20661847f8eSopenharmony_ci HAND_OPEN, 20761847f8eSopenharmony_ci 20861847f8eSopenharmony_ci /** 20961847f8eSopenharmony_ci * Hand-shaped pointer 21061847f8eSopenharmony_ci * 21161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 21261847f8eSopenharmony_ci * @since 9 21361847f8eSopenharmony_ci */ 21461847f8eSopenharmony_ci HAND_POINTING, 21561847f8eSopenharmony_ci 21661847f8eSopenharmony_ci /** 21761847f8eSopenharmony_ci * Help 21861847f8eSopenharmony_ci * 21961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 22061847f8eSopenharmony_ci * @since 9 22161847f8eSopenharmony_ci */ 22261847f8eSopenharmony_ci HELP, 22361847f8eSopenharmony_ci 22461847f8eSopenharmony_ci /** 22561847f8eSopenharmony_ci * Move 22661847f8eSopenharmony_ci * 22761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 22861847f8eSopenharmony_ci * @since 9 22961847f8eSopenharmony_ci */ 23061847f8eSopenharmony_ci MOVE, 23161847f8eSopenharmony_ci 23261847f8eSopenharmony_ci /** 23361847f8eSopenharmony_ci * Left and right resizing 23461847f8eSopenharmony_ci * 23561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 23661847f8eSopenharmony_ci * @since 9 23761847f8eSopenharmony_ci */ 23861847f8eSopenharmony_ci RESIZE_LEFT_RIGHT, 23961847f8eSopenharmony_ci 24061847f8eSopenharmony_ci /** 24161847f8eSopenharmony_ci * Up and down resizing 24261847f8eSopenharmony_ci * 24361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 24461847f8eSopenharmony_ci * @since 9 24561847f8eSopenharmony_ci */ 24661847f8eSopenharmony_ci RESIZE_UP_DOWN, 24761847f8eSopenharmony_ci 24861847f8eSopenharmony_ci /** 24961847f8eSopenharmony_ci * Screenshot crosshair 25061847f8eSopenharmony_ci * 25161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 25261847f8eSopenharmony_ci * @since 9 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_ci SCREENSHOT_CHOOSE, 25561847f8eSopenharmony_ci 25661847f8eSopenharmony_ci /** 25761847f8eSopenharmony_ci * Screenshot 25861847f8eSopenharmony_ci * 25961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 26061847f8eSopenharmony_ci * @since 9 26161847f8eSopenharmony_ci */ 26261847f8eSopenharmony_ci SCREENSHOT_CURSOR, 26361847f8eSopenharmony_ci 26461847f8eSopenharmony_ci /** 26561847f8eSopenharmony_ci * Text selection 26661847f8eSopenharmony_ci * 26761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 26861847f8eSopenharmony_ci * @since 9 26961847f8eSopenharmony_ci */ 27061847f8eSopenharmony_ci TEXT_CURSOR, 27161847f8eSopenharmony_ci 27261847f8eSopenharmony_ci /** 27361847f8eSopenharmony_ci * Zoom in 27461847f8eSopenharmony_ci * 27561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 27661847f8eSopenharmony_ci * @since 9 27761847f8eSopenharmony_ci */ 27861847f8eSopenharmony_ci ZOOM_IN, 27961847f8eSopenharmony_ci 28061847f8eSopenharmony_ci /** 28161847f8eSopenharmony_ci * Zoom out 28261847f8eSopenharmony_ci * 28361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 28461847f8eSopenharmony_ci * @since 9 28561847f8eSopenharmony_ci */ 28661847f8eSopenharmony_ci ZOOM_OUT, 28761847f8eSopenharmony_ci 28861847f8eSopenharmony_ci /** 28961847f8eSopenharmony_ci * Scrolling east 29061847f8eSopenharmony_ci * 29161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 29261847f8eSopenharmony_ci * @since 9 29361847f8eSopenharmony_ci */ 29461847f8eSopenharmony_ci MIDDLE_BTN_EAST, 29561847f8eSopenharmony_ci 29661847f8eSopenharmony_ci /** 29761847f8eSopenharmony_ci * Scrolling west 29861847f8eSopenharmony_ci * 29961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 30061847f8eSopenharmony_ci * @since 9 30161847f8eSopenharmony_ci */ 30261847f8eSopenharmony_ci MIDDLE_BTN_WEST, 30361847f8eSopenharmony_ci 30461847f8eSopenharmony_ci /** 30561847f8eSopenharmony_ci * Scrolling south 30661847f8eSopenharmony_ci * 30761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 30861847f8eSopenharmony_ci * @since 9 30961847f8eSopenharmony_ci */ 31061847f8eSopenharmony_ci MIDDLE_BTN_SOUTH, 31161847f8eSopenharmony_ci 31261847f8eSopenharmony_ci /** 31361847f8eSopenharmony_ci * Scrolling north 31461847f8eSopenharmony_ci * 31561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 31661847f8eSopenharmony_ci * @since 9 31761847f8eSopenharmony_ci */ 31861847f8eSopenharmony_ci MIDDLE_BTN_NORTH, 31961847f8eSopenharmony_ci 32061847f8eSopenharmony_ci /** 32161847f8eSopenharmony_ci * Scrolling north and south 32261847f8eSopenharmony_ci * 32361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 32461847f8eSopenharmony_ci * @since 9 32561847f8eSopenharmony_ci */ 32661847f8eSopenharmony_ci MIDDLE_BTN_NORTH_SOUTH, 32761847f8eSopenharmony_ci 32861847f8eSopenharmony_ci /** 32961847f8eSopenharmony_ci * Scrolling northeast 33061847f8eSopenharmony_ci * 33161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 33261847f8eSopenharmony_ci * @since 9 33361847f8eSopenharmony_ci */ 33461847f8eSopenharmony_ci MIDDLE_BTN_NORTH_EAST, 33561847f8eSopenharmony_ci 33661847f8eSopenharmony_ci /** 33761847f8eSopenharmony_ci * Scrolling northwest 33861847f8eSopenharmony_ci * 33961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 34061847f8eSopenharmony_ci * @since 9 34161847f8eSopenharmony_ci */ 34261847f8eSopenharmony_ci MIDDLE_BTN_NORTH_WEST, 34361847f8eSopenharmony_ci 34461847f8eSopenharmony_ci /** 34561847f8eSopenharmony_ci * Scrolling southeast 34661847f8eSopenharmony_ci * 34761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 34861847f8eSopenharmony_ci * @since 9 34961847f8eSopenharmony_ci */ 35061847f8eSopenharmony_ci MIDDLE_BTN_SOUTH_EAST, 35161847f8eSopenharmony_ci 35261847f8eSopenharmony_ci /** 35361847f8eSopenharmony_ci * Scrolling southwest 35461847f8eSopenharmony_ci * 35561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 35661847f8eSopenharmony_ci * @since 9 35761847f8eSopenharmony_ci */ 35861847f8eSopenharmony_ci MIDDLE_BTN_SOUTH_WEST, 35961847f8eSopenharmony_ci 36061847f8eSopenharmony_ci /** 36161847f8eSopenharmony_ci * Moving as a cone in four directions 36261847f8eSopenharmony_ci * 36361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 36461847f8eSopenharmony_ci * @since 9 36561847f8eSopenharmony_ci */ 36661847f8eSopenharmony_ci MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, 36761847f8eSopenharmony_ci 36861847f8eSopenharmony_ci /** 36961847f8eSopenharmony_ci * Horizontal text selection 37061847f8eSopenharmony_ci * 37161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 37261847f8eSopenharmony_ci * @since 10 37361847f8eSopenharmony_ci */ 37461847f8eSopenharmony_ci HORIZONTAL_TEXT_CURSOR, 37561847f8eSopenharmony_ci 37661847f8eSopenharmony_ci /** 37761847f8eSopenharmony_ci * Precise selection 37861847f8eSopenharmony_ci * 37961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 38061847f8eSopenharmony_ci * @since 10 38161847f8eSopenharmony_ci */ 38261847f8eSopenharmony_ci CURSOR_CROSS, 38361847f8eSopenharmony_ci 38461847f8eSopenharmony_ci /** 38561847f8eSopenharmony_ci * Cursor with circle style 38661847f8eSopenharmony_ci * 38761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 38861847f8eSopenharmony_ci * @since 10 38961847f8eSopenharmony_ci */ 39061847f8eSopenharmony_ci CURSOR_CIRCLE, 39161847f8eSopenharmony_ci 39261847f8eSopenharmony_ci /** 39361847f8eSopenharmony_ci * Loading state with dynamic cursor 39461847f8eSopenharmony_ci * 39561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 39661847f8eSopenharmony_ci * @since 10 39761847f8eSopenharmony_ci */ 39861847f8eSopenharmony_ci /** 39961847f8eSopenharmony_ci * Loading state with dynamic cursor 40061847f8eSopenharmony_ci * 40161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 40261847f8eSopenharmony_ci * @atomicservice 40361847f8eSopenharmony_ci * @since 12 40461847f8eSopenharmony_ci */ 40561847f8eSopenharmony_ci LOADING, 40661847f8eSopenharmony_ci 40761847f8eSopenharmony_ci /** 40861847f8eSopenharmony_ci * Running state with dynamic cursor 40961847f8eSopenharmony_ci * 41061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 41161847f8eSopenharmony_ci * @since 10 41261847f8eSopenharmony_ci */ 41361847f8eSopenharmony_ci /** 41461847f8eSopenharmony_ci * Running state with dynamic cursor 41561847f8eSopenharmony_ci * 41661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 41761847f8eSopenharmony_ci * @atomicservice 41861847f8eSopenharmony_ci * @since 12 41961847f8eSopenharmony_ci */ 42061847f8eSopenharmony_ci RUNNING 42161847f8eSopenharmony_ci } 42261847f8eSopenharmony_ci 42361847f8eSopenharmony_ci /** 42461847f8eSopenharmony_ci * Mouse button. 42561847f8eSopenharmony_ci * 42661847f8eSopenharmony_ci * @enum { number } 42761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 42861847f8eSopenharmony_ci * @since 10 42961847f8eSopenharmony_ci */ 43061847f8eSopenharmony_ci enum PrimaryButton { 43161847f8eSopenharmony_ci /** 43261847f8eSopenharmony_ci * Left mouse button 43361847f8eSopenharmony_ci * 43461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 43561847f8eSopenharmony_ci * @since 10 43661847f8eSopenharmony_ci */ 43761847f8eSopenharmony_ci LEFT = 0, 43861847f8eSopenharmony_ci /** 43961847f8eSopenharmony_ci * Right mouse button 44061847f8eSopenharmony_ci * 44161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 44261847f8eSopenharmony_ci * @since 10 44361847f8eSopenharmony_ci */ 44461847f8eSopenharmony_ci RIGHT = 1 44561847f8eSopenharmony_ci } 44661847f8eSopenharmony_ci 44761847f8eSopenharmony_ci /** 44861847f8eSopenharmony_ci * Device right menu type. 44961847f8eSopenharmony_ci * 45061847f8eSopenharmony_ci * @enum { number } 45161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 45261847f8eSopenharmony_ci * @since 10 45361847f8eSopenharmony_ci */ 45461847f8eSopenharmony_ci enum RightClickType { 45561847f8eSopenharmony_ci /** 45661847f8eSopenharmony_ci * Touchpad right button 45761847f8eSopenharmony_ci * 45861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 45961847f8eSopenharmony_ci * @since 10 46061847f8eSopenharmony_ci */ 46161847f8eSopenharmony_ci TOUCHPAD_RIGHT_BUTTON = 1, 46261847f8eSopenharmony_ci /** 46361847f8eSopenharmony_ci * Touchpad left button 46461847f8eSopenharmony_ci * 46561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 46661847f8eSopenharmony_ci * @since 10 46761847f8eSopenharmony_ci */ 46861847f8eSopenharmony_ci TOUCHPAD_LEFT_BUTTON = 2, 46961847f8eSopenharmony_ci /** 47061847f8eSopenharmony_ci * Touchpad two fingers tap 47161847f8eSopenharmony_ci * 47261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 47361847f8eSopenharmony_ci * @since 10 47461847f8eSopenharmony_ci */ 47561847f8eSopenharmony_ci TOUCHPAD_TWO_FINGER_TAP = 3, 47661847f8eSopenharmony_ci } 47761847f8eSopenharmony_ci 47861847f8eSopenharmony_ci /** 47961847f8eSopenharmony_ci * Sets the pointer moving speed. 48061847f8eSopenharmony_ci * 48161847f8eSopenharmony_ci * @param { number } speed - Pointer moving speed, which is any number. 48261847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 48361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 48461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 48561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 48661847f8eSopenharmony_ci * @systemapi hide for inner use 48761847f8eSopenharmony_ci * @since 9 48861847f8eSopenharmony_ci */ 48961847f8eSopenharmony_ci /** 49061847f8eSopenharmony_ci * Sets the pointer moving speed. 49161847f8eSopenharmony_ci * 49261847f8eSopenharmony_ci * @param { number } speed - Pointer moving speed, which is any number. 49361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 49461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 49561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 49661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 49761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 49861847f8eSopenharmony_ci * @systemapi hide for inner use 49961847f8eSopenharmony_ci * @since 12 50061847f8eSopenharmony_ci */ 50161847f8eSopenharmony_ci function setPointerSpeed(speed: number, callback: AsyncCallback<void>): void; 50261847f8eSopenharmony_ci 50361847f8eSopenharmony_ci /** 50461847f8eSopenharmony_ci * Sets the pointer moving speed. 50561847f8eSopenharmony_ci * 50661847f8eSopenharmony_ci * @param { number } speed - Pointer moving speed, which is any number. 50761847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 50861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 50961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 51061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 51161847f8eSopenharmony_ci * @systemapi hide for inner use 51261847f8eSopenharmony_ci * @since 9 51361847f8eSopenharmony_ci */ 51461847f8eSopenharmony_ci /** 51561847f8eSopenharmony_ci * Sets the pointer moving speed. 51661847f8eSopenharmony_ci * 51761847f8eSopenharmony_ci * @param { number } speed - Pointer moving speed, which is any number. 51861847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 51961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 52061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 52161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 52261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 52361847f8eSopenharmony_ci * @systemapi hide for inner use 52461847f8eSopenharmony_ci * @since 12 52561847f8eSopenharmony_ci */ 52661847f8eSopenharmony_ci function setPointerSpeed(speed: number): Promise<void>; 52761847f8eSopenharmony_ci 52861847f8eSopenharmony_ci /** 52961847f8eSopenharmony_ci * Sets the pointer moving speed through sync mode. 53061847f8eSopenharmony_ci * 53161847f8eSopenharmony_ci * @param { number } speed - Pointer moving speed, which is any number. 53261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 53361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 53461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 53561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 53661847f8eSopenharmony_ci * @systemapi hide for inner use 53761847f8eSopenharmony_ci * @since 10 53861847f8eSopenharmony_ci */ 53961847f8eSopenharmony_ci function setPointerSpeedSync(speed: number): void; 54061847f8eSopenharmony_ci 54161847f8eSopenharmony_ci /** 54261847f8eSopenharmony_ci * Queries the pointer moving speed. 54361847f8eSopenharmony_ci * 54461847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 54561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 54661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 54761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 54861847f8eSopenharmony_ci * @systemapi hide for inner use 54961847f8eSopenharmony_ci * @since 9 55061847f8eSopenharmony_ci */ 55161847f8eSopenharmony_ci /** 55261847f8eSopenharmony_ci * Queries the pointer moving speed. 55361847f8eSopenharmony_ci * 55461847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 55561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 55661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 55761847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 55861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 55961847f8eSopenharmony_ci * @systemapi hide for inner use 56061847f8eSopenharmony_ci * @since 12 56161847f8eSopenharmony_ci */ 56261847f8eSopenharmony_ci function getPointerSpeed(callback: AsyncCallback<number>): void; 56361847f8eSopenharmony_ci 56461847f8eSopenharmony_ci /** 56561847f8eSopenharmony_ci * Queries the pointer moving speed. 56661847f8eSopenharmony_ci * 56761847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 56861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 56961847f8eSopenharmony_ci * @systemapi hide for inner use 57061847f8eSopenharmony_ci * @since 9 57161847f8eSopenharmony_ci */ 57261847f8eSopenharmony_ci /** 57361847f8eSopenharmony_ci * Queries the pointer moving speed. 57461847f8eSopenharmony_ci * 57561847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 57661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 57761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 57861847f8eSopenharmony_ci * @systemapi hide for inner use 57961847f8eSopenharmony_ci * @since 12 58061847f8eSopenharmony_ci */ 58161847f8eSopenharmony_ci function getPointerSpeed(): Promise<number>; 58261847f8eSopenharmony_ci 58361847f8eSopenharmony_ci /** 58461847f8eSopenharmony_ci * Queries the pointer moving speed through sync mode. 58561847f8eSopenharmony_ci * @returns { number } Returns the pointer speed through sync mode. 58661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 58761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 58861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 58961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 59061847f8eSopenharmony_ci * @systemapi hide for inner use 59161847f8eSopenharmony_ci * @since 10 59261847f8eSopenharmony_ci */ 59361847f8eSopenharmony_ci function getPointerSpeedSync(): number; 59461847f8eSopenharmony_ci 59561847f8eSopenharmony_ci /** 59661847f8eSopenharmony_ci * Sets the pointer style. 59761847f8eSopenharmony_ci * 59861847f8eSopenharmony_ci * @param { number } windowId - Window ID. 59961847f8eSopenharmony_ci * @param { PointerStyle } pointerStyle - Pointer style. 60061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 60161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 60261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 60361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 60461847f8eSopenharmony_ci * @since 9 60561847f8eSopenharmony_ci */ 60661847f8eSopenharmony_ci function setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<void>): void; 60761847f8eSopenharmony_ci 60861847f8eSopenharmony_ci /** 60961847f8eSopenharmony_ci * Sets the pointer style. 61061847f8eSopenharmony_ci * 61161847f8eSopenharmony_ci * @param { number } windowId - Window ID. 61261847f8eSopenharmony_ci * @param { PointerStyle } pointerStyle - Pointer style. 61361847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 61461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 61561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 61661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 61761847f8eSopenharmony_ci * @since 9 61861847f8eSopenharmony_ci */ 61961847f8eSopenharmony_ci function setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void>; 62061847f8eSopenharmony_ci 62161847f8eSopenharmony_ci /** 62261847f8eSopenharmony_ci * Sets the pointer style through sync mode. 62361847f8eSopenharmony_ci * 62461847f8eSopenharmony_ci * @param { number } windowId - Window ID. 62561847f8eSopenharmony_ci * @param { PointerStyle } pointerStyle - Pointer style. 62661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 62761847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 62861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 62961847f8eSopenharmony_ci * @since 10 63061847f8eSopenharmony_ci */ 63161847f8eSopenharmony_ci function setPointerStyleSync(windowId: number, pointerStyle: PointerStyle): void; 63261847f8eSopenharmony_ci 63361847f8eSopenharmony_ci /** 63461847f8eSopenharmony_ci * Queries the pointer style. 63561847f8eSopenharmony_ci * 63661847f8eSopenharmony_ci * @param { number } windowId - Window ID. 63761847f8eSopenharmony_ci * @param { AsyncCallback<PointerStyle> } callback - Callback used to return the result. 63861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 63961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 64061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 64161847f8eSopenharmony_ci * @since 9 64261847f8eSopenharmony_ci */ 64361847f8eSopenharmony_ci function getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void; 64461847f8eSopenharmony_ci 64561847f8eSopenharmony_ci /** 64661847f8eSopenharmony_ci * Queries the pointer style. 64761847f8eSopenharmony_ci * 64861847f8eSopenharmony_ci * @param { number } windowId - Window ID. 64961847f8eSopenharmony_ci * @returns { Promise<PointerStyle> } Returns the result through a promise. 65061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 65161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 65261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 65361847f8eSopenharmony_ci * @since 9 65461847f8eSopenharmony_ci */ 65561847f8eSopenharmony_ci function getPointerStyle(windowId: number): Promise<PointerStyle>; 65661847f8eSopenharmony_ci 65761847f8eSopenharmony_ci /** 65861847f8eSopenharmony_ci * Queries the pointer style through sync mode. 65961847f8eSopenharmony_ci * 66061847f8eSopenharmony_ci * @param { number } windowId - Window ID. 66161847f8eSopenharmony_ci * @returns { PointerStyle } Returns the pointerStyle. 66261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 66361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 66461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 66561847f8eSopenharmony_ci * @since 10 66661847f8eSopenharmony_ci */ 66761847f8eSopenharmony_ci function getPointerStyleSync(windowId: number): PointerStyle; 66861847f8eSopenharmony_ci 66961847f8eSopenharmony_ci /** 67061847f8eSopenharmony_ci * Sets whether the pointer icon is visible. 67161847f8eSopenharmony_ci * 67261847f8eSopenharmony_ci * @param { boolean } visible Whether the pointer icon is visible. The value true indicates that the pointer 67361847f8eSopenharmony_ci * icon is visible, and the value false indicates the opposite. 67461847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback for the input device event. 67561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 67661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 67761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 67861847f8eSopenharmony_ci * @since 9 67961847f8eSopenharmony_ci */ 68061847f8eSopenharmony_ci function setPointerVisible(visible: boolean, callback: AsyncCallback<void>): void; 68161847f8eSopenharmony_ci 68261847f8eSopenharmony_ci /** 68361847f8eSopenharmony_ci * Sets whether the pointer icon is visible. 68461847f8eSopenharmony_ci * 68561847f8eSopenharmony_ci * @param { boolean } visible Whether the pointer icon is visible. The value true indicates that the pointer 68661847f8eSopenharmony_ci * icon is visible, and the value false indicates the opposite. 68761847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 68861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 68961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 69061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 69161847f8eSopenharmony_ci * @since 9 69261847f8eSopenharmony_ci */ 69361847f8eSopenharmony_ci function setPointerVisible(visible: boolean): Promise<void>; 69461847f8eSopenharmony_ci 69561847f8eSopenharmony_ci /** 69661847f8eSopenharmony_ci * Sets whether the pointer icon is visible through sync mode. 69761847f8eSopenharmony_ci * 69861847f8eSopenharmony_ci * @param { boolean } visible Whether the pointer icon is visible. The value true indicates that the pointer 69961847f8eSopenharmony_ci * icon is visible, and the value false indicates the opposite. 70061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 70161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 70261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 70361847f8eSopenharmony_ci * @since 10 70461847f8eSopenharmony_ci */ 70561847f8eSopenharmony_ci function setPointerVisibleSync(visible: boolean): void; 70661847f8eSopenharmony_ci 70761847f8eSopenharmony_ci /** 70861847f8eSopenharmony_ci * Checks whether the pointer icon is visible. 70961847f8eSopenharmony_ci * 71061847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Returns <b>true</b> if the pointer icon is visible, 71161847f8eSopenharmony_ci * returns <b>false</b> otherwise. 71261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 71361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 71461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 71561847f8eSopenharmony_ci * @since 9 71661847f8eSopenharmony_ci */ 71761847f8eSopenharmony_ci function isPointerVisible(callback: AsyncCallback<boolean>): void; 71861847f8eSopenharmony_ci 71961847f8eSopenharmony_ci /** 72061847f8eSopenharmony_ci * Checks whether the pointer icon is visible. 72161847f8eSopenharmony_ci * 72261847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns <b>true</b> if the pointer icon is visible; returns <b>false</b> otherwise. 72361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 72461847f8eSopenharmony_ci * @since 9 72561847f8eSopenharmony_ci */ 72661847f8eSopenharmony_ci function isPointerVisible(): Promise<boolean>; 72761847f8eSopenharmony_ci 72861847f8eSopenharmony_ci /** 72961847f8eSopenharmony_ci * Checks whether the pointer icon is visible through sync mode. 73061847f8eSopenharmony_ci * 73161847f8eSopenharmony_ci * @returns { boolean } Returns true if the pointer icon is visible, returns false otherwise. 73261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 73361847f8eSopenharmony_ci * @since 10 73461847f8eSopenharmony_ci */ 73561847f8eSopenharmony_ci function isPointerVisibleSync(): boolean; 73661847f8eSopenharmony_ci 73761847f8eSopenharmony_ci /** 73861847f8eSopenharmony_ci * Set the color of pointer. 73961847f8eSopenharmony_ci * 74061847f8eSopenharmony_ci * @param { number } color - Indicates the color of pointer. 74161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 74261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 74361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 74461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 74561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 74661847f8eSopenharmony_ci * @systemapi hide for inner use. 74761847f8eSopenharmony_ci * @since 10 74861847f8eSopenharmony_ci */ 74961847f8eSopenharmony_ci function setPointerColor(color: number, callback: AsyncCallback<void>): void; 75061847f8eSopenharmony_ci 75161847f8eSopenharmony_ci /** 75261847f8eSopenharmony_ci * Set the color of pointer. 75361847f8eSopenharmony_ci * 75461847f8eSopenharmony_ci * @param { number } color - Indicates the color of pointer. 75561847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 75661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 75761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 75861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 75961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 76061847f8eSopenharmony_ci * @systemapi hide for inner use. 76161847f8eSopenharmony_ci * @since 10 76261847f8eSopenharmony_ci */ 76361847f8eSopenharmony_ci function setPointerColor(color: number): Promise<void>; 76461847f8eSopenharmony_ci 76561847f8eSopenharmony_ci /** 76661847f8eSopenharmony_ci * Set the color of pointer. 76761847f8eSopenharmony_ci * 76861847f8eSopenharmony_ci * @param { number } color - Indicates the color of pointer. 76961847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 77061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 77161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 77261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 77361847f8eSopenharmony_ci * @systemapi hide for inner use. 77461847f8eSopenharmony_ci * @since 10 77561847f8eSopenharmony_ci */ 77661847f8eSopenharmony_ci function setPointerColorSync(color: number): void; 77761847f8eSopenharmony_ci 77861847f8eSopenharmony_ci /** 77961847f8eSopenharmony_ci * Get the color of pointer. 78061847f8eSopenharmony_ci * 78161847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 78261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 78361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 78461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 78561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 78661847f8eSopenharmony_ci * @systemapi hide for inner use. 78761847f8eSopenharmony_ci * @since 10 78861847f8eSopenharmony_ci */ 78961847f8eSopenharmony_ci function getPointerColor(callback: AsyncCallback<number>): void; 79061847f8eSopenharmony_ci 79161847f8eSopenharmony_ci /** 79261847f8eSopenharmony_ci * Get the color of pointer. 79361847f8eSopenharmony_ci * 79461847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 79561847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 79661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 79761847f8eSopenharmony_ci * @systemapi hide for inner use. 79861847f8eSopenharmony_ci * @since 10 79961847f8eSopenharmony_ci */ 80061847f8eSopenharmony_ci function getPointerColor(): Promise<number>; 80161847f8eSopenharmony_ci 80261847f8eSopenharmony_ci /** 80361847f8eSopenharmony_ci * Get the color of pointer. 80461847f8eSopenharmony_ci * 80561847f8eSopenharmony_ci * @returns { number } Returns the pointer color through sync mode. 80661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 80761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 80861847f8eSopenharmony_ci * @systemapi hide for inner use. 80961847f8eSopenharmony_ci * @since 10 81061847f8eSopenharmony_ci */ 81161847f8eSopenharmony_ci function getPointerColorSync(): number; 81261847f8eSopenharmony_ci 81361847f8eSopenharmony_ci /** 81461847f8eSopenharmony_ci * Set the size of pointer. 81561847f8eSopenharmony_ci * 81661847f8eSopenharmony_ci * @param { number } size - Indicates the size of pointer. 81761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 81861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 81961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 82061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 82161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 82261847f8eSopenharmony_ci * @systemapi hide for inner use. 82361847f8eSopenharmony_ci * @since 10 82461847f8eSopenharmony_ci */ 82561847f8eSopenharmony_ci function setPointerSize(size: number, callback: AsyncCallback<void>): void; 82661847f8eSopenharmony_ci 82761847f8eSopenharmony_ci /** 82861847f8eSopenharmony_ci * Set the size of pointer. 82961847f8eSopenharmony_ci * 83061847f8eSopenharmony_ci * @param { number } size - Indicates the size of pointer. 83161847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 83261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 83361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 83461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 83561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 83661847f8eSopenharmony_ci * @systemapi hide for inner use. 83761847f8eSopenharmony_ci * @since 10 83861847f8eSopenharmony_ci */ 83961847f8eSopenharmony_ci function setPointerSize(size: number): Promise<void>; 84061847f8eSopenharmony_ci 84161847f8eSopenharmony_ci /** 84261847f8eSopenharmony_ci * Set the size of pointer. 84361847f8eSopenharmony_ci * 84461847f8eSopenharmony_ci * @param { number } size - Indicates the size of pointer. 84561847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 84661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 84761847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 84861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 84961847f8eSopenharmony_ci * @systemapi hide for inner use. 85061847f8eSopenharmony_ci * @since 10 85161847f8eSopenharmony_ci */ 85261847f8eSopenharmony_ci function setPointerSizeSync(size: number): void; 85361847f8eSopenharmony_ci 85461847f8eSopenharmony_ci /** 85561847f8eSopenharmony_ci * Get the size of pointer. 85661847f8eSopenharmony_ci * 85761847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 85861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 85961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 86061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 86161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 86261847f8eSopenharmony_ci * @systemapi hide for inner use. 86361847f8eSopenharmony_ci * @since 10 86461847f8eSopenharmony_ci */ 86561847f8eSopenharmony_ci function getPointerSize(callback: AsyncCallback<number>): void; 86661847f8eSopenharmony_ci 86761847f8eSopenharmony_ci /** 86861847f8eSopenharmony_ci * Get the size of pointer. 86961847f8eSopenharmony_ci * 87061847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 87161847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 87261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 87361847f8eSopenharmony_ci * @systemapi hide for inner use. 87461847f8eSopenharmony_ci * @since 10 87561847f8eSopenharmony_ci */ 87661847f8eSopenharmony_ci function getPointerSize(): Promise<number>; 87761847f8eSopenharmony_ci 87861847f8eSopenharmony_ci /** 87961847f8eSopenharmony_ci * Get the size of pointer. 88061847f8eSopenharmony_ci * 88161847f8eSopenharmony_ci * @returns { number } Returns the pointer size through sync mode. 88261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 88361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 88461847f8eSopenharmony_ci * @systemapi hide for inner use. 88561847f8eSopenharmony_ci * @since 10 88661847f8eSopenharmony_ci */ 88761847f8eSopenharmony_ci function getPointerSizeSync(): number; 88861847f8eSopenharmony_ci 88961847f8eSopenharmony_ci /** 89061847f8eSopenharmony_ci * Sets mouse primary button. 89161847f8eSopenharmony_ci * 89261847f8eSopenharmony_ci * @param { PrimaryButton } primary - Indicates mouse primary button. The value LEFT indicates that mouse primary 89361847f8eSopenharmony_ci * button is left button, and the value RIGHT indicates that mouse primary button is right button. 89461847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 89561847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 89661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 89761847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 89861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 89961847f8eSopenharmony_ci * @systemapi hide for inner use. 90061847f8eSopenharmony_ci * @since 10 90161847f8eSopenharmony_ci */ 90261847f8eSopenharmony_ci function setMousePrimaryButton(primary: PrimaryButton, callback: AsyncCallback<void>): void; 90361847f8eSopenharmony_ci 90461847f8eSopenharmony_ci /** 90561847f8eSopenharmony_ci * Sets mouse primary button. 90661847f8eSopenharmony_ci * 90761847f8eSopenharmony_ci * @param { PrimaryButton } primary - Indicates mouse primary button. The value LEFT indicates that mouse primary 90861847f8eSopenharmony_ci * button is left button, and the value RIGHT indicates that mouse primary button is right button. 90961847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 91061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 91161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 91261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 91361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 91461847f8eSopenharmony_ci * @systemapi hide for inner use. 91561847f8eSopenharmony_ci * @since 10 91661847f8eSopenharmony_ci */ 91761847f8eSopenharmony_ci function setMousePrimaryButton(primary: PrimaryButton): Promise<void>; 91861847f8eSopenharmony_ci 91961847f8eSopenharmony_ci /** 92061847f8eSopenharmony_ci * Gets mouse primary button. 92161847f8eSopenharmony_ci * 92261847f8eSopenharmony_ci * @param { AsyncCallback<PrimaryButton> } callback - Callback used to return the result. 92361847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 92461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 92561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 92661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 92761847f8eSopenharmony_ci * @systemapi hide for inner use. 92861847f8eSopenharmony_ci * @since 10 92961847f8eSopenharmony_ci */ 93061847f8eSopenharmony_ci function getMousePrimaryButton(callback: AsyncCallback<PrimaryButton>): void; 93161847f8eSopenharmony_ci 93261847f8eSopenharmony_ci /** 93361847f8eSopenharmony_ci * Gets mouse primary button. 93461847f8eSopenharmony_ci * 93561847f8eSopenharmony_ci * @returns { Promise<PrimaryButton> } Returns the result through a promise. 93661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 93761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 93861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 93961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 94061847f8eSopenharmony_ci * @systemapi hide for inner use. 94161847f8eSopenharmony_ci * @since 10 94261847f8eSopenharmony_ci */ 94361847f8eSopenharmony_ci function getMousePrimaryButton(): Promise<PrimaryButton>; 94461847f8eSopenharmony_ci 94561847f8eSopenharmony_ci /** 94661847f8eSopenharmony_ci * Sets whether the mouse hover scroll is enabled in inactive window. 94761847f8eSopenharmony_ci * 94861847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the mouse hover scroll is enabled in inactive window. The value true 94961847f8eSopenharmony_ci * indicates that the mouse hover scroll is enabled, and the value false indicates the opposite. 95061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 95161847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 95261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 95361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 95461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 95561847f8eSopenharmony_ci * @systemapi hide for inner use. 95661847f8eSopenharmony_ci * @since 10 95761847f8eSopenharmony_ci */ 95861847f8eSopenharmony_ci function setHoverScrollState(state: boolean, callback: AsyncCallback<void>): void; 95961847f8eSopenharmony_ci 96061847f8eSopenharmony_ci /** 96161847f8eSopenharmony_ci * Sets whether mouse hover scroll is enabled in inactive window. 96261847f8eSopenharmony_ci * 96361847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the mouse hover scroll is enabled in inactive window. The value true 96461847f8eSopenharmony_ci * indicates that the mouse hover scroll is enabled, and the value false indicates the opposite. 96561847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 96661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 96761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 96861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 96961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 97061847f8eSopenharmony_ci * @systemapi hide for inner use. 97161847f8eSopenharmony_ci * @since 10 97261847f8eSopenharmony_ci */ 97361847f8eSopenharmony_ci function setHoverScrollState(state: boolean): Promise<void>; 97461847f8eSopenharmony_ci 97561847f8eSopenharmony_ci /** 97661847f8eSopenharmony_ci * Gets a status whether the mouse hover scroll is enabled in inactive window. 97761847f8eSopenharmony_ci * 97861847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 97961847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 98061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 98161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 98261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 98361847f8eSopenharmony_ci * @systemapi hide for inner use. 98461847f8eSopenharmony_ci * @since 10 98561847f8eSopenharmony_ci */ 98661847f8eSopenharmony_ci function getHoverScrollState(callback: AsyncCallback<boolean>): void; 98761847f8eSopenharmony_ci 98861847f8eSopenharmony_ci /** 98961847f8eSopenharmony_ci * Gets a status whether mouse hover scroll is enabled in inactive window. 99061847f8eSopenharmony_ci * 99161847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 99261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 99361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 99461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 99561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 99661847f8eSopenharmony_ci * @systemapi hide for inner use. 99761847f8eSopenharmony_ci * @since 10 99861847f8eSopenharmony_ci */ 99961847f8eSopenharmony_ci function getHoverScrollState(): Promise<boolean>; 100061847f8eSopenharmony_ci 100161847f8eSopenharmony_ci /** 100261847f8eSopenharmony_ci * Set the number of mouse scrolling rows. 100361847f8eSopenharmony_ci * 100461847f8eSopenharmony_ci * @param { number } rows - Indicates the number of mouse scrolling rows. 100561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 100661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 100761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 100861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 100961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 101061847f8eSopenharmony_ci * @systemapi hide for inner use. 101161847f8eSopenharmony_ci * @since 10 101261847f8eSopenharmony_ci */ 101361847f8eSopenharmony_ci function setMouseScrollRows(rows: number, callback: AsyncCallback<void>): void; 101461847f8eSopenharmony_ci 101561847f8eSopenharmony_ci /** 101661847f8eSopenharmony_ci * Set the number of mouse scrolling rows. 101761847f8eSopenharmony_ci * 101861847f8eSopenharmony_ci * @param { number } rows - Indicates the number of mouse scrolling rows. 101961847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 102061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 102161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 102261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 102361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 102461847f8eSopenharmony_ci * @systemapi hide for inner use. 102561847f8eSopenharmony_ci * @since 10 102661847f8eSopenharmony_ci */ 102761847f8eSopenharmony_ci function setMouseScrollRows(rows: number): Promise<void>; 102861847f8eSopenharmony_ci 102961847f8eSopenharmony_ci /** 103061847f8eSopenharmony_ci * Get the number of mouse scrolling rows. 103161847f8eSopenharmony_ci * 103261847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 103361847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 103461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 103561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 103661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 103761847f8eSopenharmony_ci * @systemapi hide for inner use. 103861847f8eSopenharmony_ci * @since 10 103961847f8eSopenharmony_ci */ 104061847f8eSopenharmony_ci function getMouseScrollRows(callback: AsyncCallback<number>): void; 104161847f8eSopenharmony_ci 104261847f8eSopenharmony_ci /** 104361847f8eSopenharmony_ci * Get the number of mouse scrolling rows. 104461847f8eSopenharmony_ci * 104561847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 104661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 104761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 104861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 104961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 105061847f8eSopenharmony_ci * @systemapi hide for inner use. 105161847f8eSopenharmony_ci * @since 10 105261847f8eSopenharmony_ci */ 105361847f8eSopenharmony_ci function getMouseScrollRows(): Promise<number>; 105461847f8eSopenharmony_ci 105561847f8eSopenharmony_ci /** 105661847f8eSopenharmony_ci * Set touchpad scroll switch. 105761847f8eSopenharmony_ci * 105861847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad scroll switch is enabled 105961847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 106061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 106161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 106261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 106361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 106461847f8eSopenharmony_ci * @systemapi hide for inner use. 106561847f8eSopenharmony_ci * @since 10 106661847f8eSopenharmony_ci */ 106761847f8eSopenharmony_ci function setTouchpadScrollSwitch(state: boolean, callback: AsyncCallback<void>): void; 106861847f8eSopenharmony_ci 106961847f8eSopenharmony_ci /** 107061847f8eSopenharmony_ci * Set touchpad scroll switch. 107161847f8eSopenharmony_ci * 107261847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad scroll switch is enabled 107361847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 107461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 107561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 107661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 107761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 107861847f8eSopenharmony_ci * @systemapi hide for inner use. 107961847f8eSopenharmony_ci * @since 10 108061847f8eSopenharmony_ci */ 108161847f8eSopenharmony_ci function setTouchpadScrollSwitch(state: boolean): Promise<void>; 108261847f8eSopenharmony_ci 108361847f8eSopenharmony_ci /** 108461847f8eSopenharmony_ci * Get touchpad scroll switch state. 108561847f8eSopenharmony_ci * 108661847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 108761847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 108861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 108961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 109061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 109161847f8eSopenharmony_ci * @systemapi hide for inner use. 109261847f8eSopenharmony_ci * @since 10 109361847f8eSopenharmony_ci */ 109461847f8eSopenharmony_ci function getTouchpadScrollSwitch(callback: AsyncCallback<boolean>): void; 109561847f8eSopenharmony_ci 109661847f8eSopenharmony_ci /** 109761847f8eSopenharmony_ci * Get touchpad scroll switch state. 109861847f8eSopenharmony_ci * 109961847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 110061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 110161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 110261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 110361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 110461847f8eSopenharmony_ci * @systemapi hide for inner use. 110561847f8eSopenharmony_ci * @since 10 110661847f8eSopenharmony_ci */ 110761847f8eSopenharmony_ci function getTouchpadScrollSwitch(): Promise<boolean>; 110861847f8eSopenharmony_ci 110961847f8eSopenharmony_ci /** 111061847f8eSopenharmony_ci * Set touchpad scroll direction. 111161847f8eSopenharmony_ci * 111261847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad scroll direction is forward or reverse 111361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 111461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 111561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 111661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 111761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 111861847f8eSopenharmony_ci * @systemapi hide for inner use. 111961847f8eSopenharmony_ci * @since 10 112061847f8eSopenharmony_ci */ 112161847f8eSopenharmony_ci function setTouchpadScrollDirection(state: boolean, callback: AsyncCallback<void>): void; 112261847f8eSopenharmony_ci 112361847f8eSopenharmony_ci /** 112461847f8eSopenharmony_ci * Set touchpad scroll direction. 112561847f8eSopenharmony_ci * 112661847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad scroll direction is forward or reverse 112761847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 112861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 112961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 113061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 113161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 113261847f8eSopenharmony_ci * @systemapi hide for inner use. 113361847f8eSopenharmony_ci * @since 10 113461847f8eSopenharmony_ci */ 113561847f8eSopenharmony_ci function setTouchpadScrollDirection(state: boolean): Promise<void>; 113661847f8eSopenharmony_ci 113761847f8eSopenharmony_ci /** 113861847f8eSopenharmony_ci * Get touchpad scroll direction. 113961847f8eSopenharmony_ci * 114061847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 114161847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 114261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 114361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 114461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 114561847f8eSopenharmony_ci * @systemapi hide for inner use. 114661847f8eSopenharmony_ci * @since 10 114761847f8eSopenharmony_ci */ 114861847f8eSopenharmony_ci function getTouchpadScrollDirection(callback: AsyncCallback<boolean>): void; 114961847f8eSopenharmony_ci 115061847f8eSopenharmony_ci /** 115161847f8eSopenharmony_ci * Get touchpad scroll direction. 115261847f8eSopenharmony_ci * 115361847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 115461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 115561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 115661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 115761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 115861847f8eSopenharmony_ci * @systemapi hide for inner use. 115961847f8eSopenharmony_ci * @since 10 116061847f8eSopenharmony_ci */ 116161847f8eSopenharmony_ci function getTouchpadScrollDirection(): Promise<boolean>; 116261847f8eSopenharmony_ci 116361847f8eSopenharmony_ci /** 116461847f8eSopenharmony_ci * Set touchpad tap switch. 116561847f8eSopenharmony_ci * 116661847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad tap switch is enabled 116761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 116861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 116961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 117061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 117161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 117261847f8eSopenharmony_ci * @systemapi hide for inner use. 117361847f8eSopenharmony_ci * @since 10 117461847f8eSopenharmony_ci */ 117561847f8eSopenharmony_ci function setTouchpadTapSwitch(state: boolean, callback: AsyncCallback<void>): void; 117661847f8eSopenharmony_ci 117761847f8eSopenharmony_ci /** 117861847f8eSopenharmony_ci * Set touchpad tap switch. 117961847f8eSopenharmony_ci * 118061847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad tap switch is enabled 118161847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 118261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 118361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 118461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 118561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 118661847f8eSopenharmony_ci * @systemapi hide for inner use. 118761847f8eSopenharmony_ci * @since 10 118861847f8eSopenharmony_ci */ 118961847f8eSopenharmony_ci function setTouchpadTapSwitch(state: boolean): Promise<void>; 119061847f8eSopenharmony_ci 119161847f8eSopenharmony_ci /** 119261847f8eSopenharmony_ci * Get touchpad tap switch state. 119361847f8eSopenharmony_ci * 119461847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 119561847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 119661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 119761847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 119861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 119961847f8eSopenharmony_ci * @systemapi hide for inner use. 120061847f8eSopenharmony_ci * @since 10 120161847f8eSopenharmony_ci */ 120261847f8eSopenharmony_ci function getTouchpadTapSwitch(callback: AsyncCallback<boolean>): void; 120361847f8eSopenharmony_ci 120461847f8eSopenharmony_ci /** 120561847f8eSopenharmony_ci * Get touchpad tap switch state. 120661847f8eSopenharmony_ci * 120761847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 120861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 120961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 121061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 121161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 121261847f8eSopenharmony_ci * @systemapi hide for inner use. 121361847f8eSopenharmony_ci * @since 10 121461847f8eSopenharmony_ci */ 121561847f8eSopenharmony_ci function getTouchpadTapSwitch(): Promise<boolean>; 121661847f8eSopenharmony_ci 121761847f8eSopenharmony_ci /** 121861847f8eSopenharmony_ci * Set touchpad pointer speed. 121961847f8eSopenharmony_ci * 122061847f8eSopenharmony_ci * @param { number } speed - Indicates the number of touchpad pointer speed. 122161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 122261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 122361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 122461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 122561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 122661847f8eSopenharmony_ci * @systemapi hide for inner use. 122761847f8eSopenharmony_ci * @since 10 122861847f8eSopenharmony_ci */ 122961847f8eSopenharmony_ci function setTouchpadPointerSpeed(speed: number, callback: AsyncCallback<void>): void; 123061847f8eSopenharmony_ci 123161847f8eSopenharmony_ci /** 123261847f8eSopenharmony_ci * Set touchpad pointer speed. 123361847f8eSopenharmony_ci * 123461847f8eSopenharmony_ci * @param { number } speed - Indicates the number of touchpad pointer speed. 123561847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 123661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 123761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 123861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 123961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 124061847f8eSopenharmony_ci * @systemapi hide for inner use. 124161847f8eSopenharmony_ci * @since 10 124261847f8eSopenharmony_ci */ 124361847f8eSopenharmony_ci function setTouchpadPointerSpeed(speed: number): Promise<void>; 124461847f8eSopenharmony_ci 124561847f8eSopenharmony_ci /** 124661847f8eSopenharmony_ci * Get touchpad pointer speed. 124761847f8eSopenharmony_ci * 124861847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Callback used to return the result. 124961847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 125061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 125161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 125261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 125361847f8eSopenharmony_ci * @systemapi hide for inner use. 125461847f8eSopenharmony_ci * @since 10 125561847f8eSopenharmony_ci */ 125661847f8eSopenharmony_ci function getTouchpadPointerSpeed(callback: AsyncCallback<number>): void; 125761847f8eSopenharmony_ci 125861847f8eSopenharmony_ci /** 125961847f8eSopenharmony_ci * Get touchpad pointer speed. 126061847f8eSopenharmony_ci * 126161847f8eSopenharmony_ci * @returns { Promise<number> } Returns the result through a promise. 126261847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 126361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 126461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 126561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 126661847f8eSopenharmony_ci * @systemapi hide for inner use. 126761847f8eSopenharmony_ci * @since 10 126861847f8eSopenharmony_ci */ 126961847f8eSopenharmony_ci function getTouchpadPointerSpeed(): Promise<number>; 127061847f8eSopenharmony_ci 127161847f8eSopenharmony_ci /** 127261847f8eSopenharmony_ci * Set touchpad pinch switch. 127361847f8eSopenharmony_ci * 127461847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad pinch switch is enabled 127561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 127661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 127761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 127861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 127961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 128061847f8eSopenharmony_ci * @systemapi hide for inner use. 128161847f8eSopenharmony_ci * @since 10 128261847f8eSopenharmony_ci */ 128361847f8eSopenharmony_ci function setTouchpadPinchSwitch(state: boolean, callback: AsyncCallback<void>): void; 128461847f8eSopenharmony_ci 128561847f8eSopenharmony_ci /** 128661847f8eSopenharmony_ci * Set touchpad pinch switch. 128761847f8eSopenharmony_ci * 128861847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad pinch switch is enabled 128961847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 129061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 129161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 129261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 129361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 129461847f8eSopenharmony_ci * @systemapi hide for inner use. 129561847f8eSopenharmony_ci * @since 10 129661847f8eSopenharmony_ci */ 129761847f8eSopenharmony_ci function setTouchpadPinchSwitch(state: boolean): Promise<void>; 129861847f8eSopenharmony_ci 129961847f8eSopenharmony_ci /** 130061847f8eSopenharmony_ci * Get touchpad pinch switch state. 130161847f8eSopenharmony_ci * 130261847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 130361847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 130461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 130561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 130661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 130761847f8eSopenharmony_ci * @systemapi hide for inner use. 130861847f8eSopenharmony_ci * @since 10 130961847f8eSopenharmony_ci */ 131061847f8eSopenharmony_ci function getTouchpadPinchSwitch(callback: AsyncCallback<boolean>): void; 131161847f8eSopenharmony_ci 131261847f8eSopenharmony_ci /** 131361847f8eSopenharmony_ci * Get touchpad pinch switch state. 131461847f8eSopenharmony_ci * 131561847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 131661847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 131761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 131861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 131961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 132061847f8eSopenharmony_ci * @systemapi hide for inner use. 132161847f8eSopenharmony_ci * @since 10 132261847f8eSopenharmony_ci */ 132361847f8eSopenharmony_ci function getTouchpadPinchSwitch(): Promise<boolean>; 132461847f8eSopenharmony_ci 132561847f8eSopenharmony_ci /** 132661847f8eSopenharmony_ci * Set touchpad swipe switch. 132761847f8eSopenharmony_ci * 132861847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad swipe switch is enabled 132961847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 133061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 133161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 133261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 133361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 133461847f8eSopenharmony_ci * @systemapi hide for inner use. 133561847f8eSopenharmony_ci * @since 10 133661847f8eSopenharmony_ci */ 133761847f8eSopenharmony_ci function setTouchpadSwipeSwitch(state: boolean, callback: AsyncCallback<void>): void; 133861847f8eSopenharmony_ci 133961847f8eSopenharmony_ci /** 134061847f8eSopenharmony_ci * Set touchpad swipe switch. 134161847f8eSopenharmony_ci * 134261847f8eSopenharmony_ci * @param { boolean } state - Indicates whether the touchpad swipe switch is enabled 134361847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 134461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 134561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 134661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 134761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 134861847f8eSopenharmony_ci * @systemapi hide for inner use. 134961847f8eSopenharmony_ci * @since 10 135061847f8eSopenharmony_ci */ 135161847f8eSopenharmony_ci function setTouchpadSwipeSwitch(state: boolean): Promise<void>; 135261847f8eSopenharmony_ci 135361847f8eSopenharmony_ci /** 135461847f8eSopenharmony_ci * Get touchpad swipe switch state. 135561847f8eSopenharmony_ci * 135661847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Callback used to return the result. 135761847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 135861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 135961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 136061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 136161847f8eSopenharmony_ci * @systemapi hide for inner use. 136261847f8eSopenharmony_ci * @since 10 136361847f8eSopenharmony_ci */ 136461847f8eSopenharmony_ci function getTouchpadSwipeSwitch(callback: AsyncCallback<boolean>): void; 136561847f8eSopenharmony_ci 136661847f8eSopenharmony_ci /** 136761847f8eSopenharmony_ci * Get touchpad swipe switch state. 136861847f8eSopenharmony_ci * 136961847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns the result through a promise. 137061847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 137161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 137261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 137361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 137461847f8eSopenharmony_ci * @systemapi hide for inner use. 137561847f8eSopenharmony_ci * @since 10 137661847f8eSopenharmony_ci */ 137761847f8eSopenharmony_ci function getTouchpadSwipeSwitch(): Promise<boolean>; 137861847f8eSopenharmony_ci 137961847f8eSopenharmony_ci /** 138061847f8eSopenharmony_ci * Set touchpad right click type. 138161847f8eSopenharmony_ci * 138261847f8eSopenharmony_ci * @param { RightClickType } type - Indicates the type of touchpad right button menu. 138361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - Callback used to return the result. 138461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 138561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 138661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 138761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 138861847f8eSopenharmony_ci * @systemapi hide for inner use. 138961847f8eSopenharmony_ci * @since 10 139061847f8eSopenharmony_ci */ 139161847f8eSopenharmony_ci function setTouchpadRightClickType(type: RightClickType, callback: AsyncCallback<void>): void; 139261847f8eSopenharmony_ci 139361847f8eSopenharmony_ci /** 139461847f8eSopenharmony_ci * Set touchpad right click type. 139561847f8eSopenharmony_ci * 139661847f8eSopenharmony_ci * @param { RightClickType } type - Indicates the type of touchpad right click. 139761847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 139861847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 139961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 140061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 140161847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 140261847f8eSopenharmony_ci * @systemapi hide for inner use. 140361847f8eSopenharmony_ci * @since 10 140461847f8eSopenharmony_ci */ 140561847f8eSopenharmony_ci function setTouchpadRightClickType(type: RightClickType): Promise<void>; 140661847f8eSopenharmony_ci 140761847f8eSopenharmony_ci /** 140861847f8eSopenharmony_ci * Get touchpad right click type. 140961847f8eSopenharmony_ci * 141061847f8eSopenharmony_ci * @param { AsyncCallback<RightClickType> } callback - Callback used to return the result of right click type. 141161847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 141261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 141361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 141461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 141561847f8eSopenharmony_ci * @systemapi hide for inner use. 141661847f8eSopenharmony_ci * @since 10 141761847f8eSopenharmony_ci */ 141861847f8eSopenharmony_ci function getTouchpadRightClickType(callback: AsyncCallback<RightClickType>): void; 141961847f8eSopenharmony_ci 142061847f8eSopenharmony_ci /** 142161847f8eSopenharmony_ci * Get touchpad right click type. 142261847f8eSopenharmony_ci * 142361847f8eSopenharmony_ci * @returns { Promise<RightClickType> } Returns the result of right click type through a promise. 142461847f8eSopenharmony_ci * @throws { BusinessError } 202 - SystemAPI permission error. 142561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 142661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 142761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 142861847f8eSopenharmony_ci * @systemapi hide for inner use. 142961847f8eSopenharmony_ci * @since 10 143061847f8eSopenharmony_ci */ 143161847f8eSopenharmony_ci function getTouchpadRightClickType(): Promise<RightClickType>; 143261847f8eSopenharmony_ci 143361847f8eSopenharmony_ci /** 143461847f8eSopenharmony_ci * Sets the custom cursor. 143561847f8eSopenharmony_ci * 143661847f8eSopenharmony_ci * @param { number } windowId - Window ID. 143761847f8eSopenharmony_ci * @param { image.PixelMap } pixelMap - the cursor of pixelMap. 143861847f8eSopenharmony_ci * @param { number } focusX - focus x. 143961847f8eSopenharmony_ci * @param { number } focusY - focus y. 144061847f8eSopenharmony_ci * @returns { Promise<void> } Returns the result through a promise. 144161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 144261847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 144361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 144461847f8eSopenharmony_ci * @since 11 144561847f8eSopenharmony_ci */ 144661847f8eSopenharmony_ci function setCustomCursor(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): Promise<void>; 144761847f8eSopenharmony_ci 144861847f8eSopenharmony_ci /** 144961847f8eSopenharmony_ci * Sets the custom cursor through sync mode. 145061847f8eSopenharmony_ci * 145161847f8eSopenharmony_ci * @param { number } windowId - Window ID. 145261847f8eSopenharmony_ci * @param { image.PixelMap } pixelMap - the cursor of pixelMap. 145361847f8eSopenharmony_ci * @param { number } focusX - focus x. 145461847f8eSopenharmony_ci * @param { number } focusY - focus y. 145561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 145661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 145761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer 145861847f8eSopenharmony_ci * @since 11 145961847f8eSopenharmony_ci */ 146061847f8eSopenharmony_ci function setCustomCursorSync(windowId: number, pixelMap: image.PixelMap, focusX?: number, focusY?: number): void; 146161847f8eSopenharmony_ci} 146261847f8eSopenharmony_ci 146361847f8eSopenharmony_ciexport default pointer;