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 { AsyncCallback } from "./@ohos.base"; 2261847f8eSopenharmony_ci 2361847f8eSopenharmony_ci/** 2461847f8eSopenharmony_ci * Events for input devices 2561847f8eSopenharmony_ci * 2661847f8eSopenharmony_ci * @namespace inputDeviceCooperate 2761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 2861847f8eSopenharmony_ci * @since 9 2961847f8eSopenharmony_ci */ 3061847f8eSopenharmony_ci 3161847f8eSopenharmony_ci 3261847f8eSopenharmony_cideclare namespace inputDeviceCooperate { 3361847f8eSopenharmony_ci /** 3461847f8eSopenharmony_ci * Enumerates mouse traversal events. 3561847f8eSopenharmony_ci * @enum { number } 3661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 3761847f8eSopenharmony_ci * @systemapi hide for inner use. 3861847f8eSopenharmony_ci * @since 9 3961847f8eSopenharmony_ci */ 4061847f8eSopenharmony_ci enum EventMsg { 4161847f8eSopenharmony_ci /** 4261847f8eSopenharmony_ci * Mouse traversal message: mouse traversal is enabled. 4361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 4461847f8eSopenharmony_ci * @systemapi hide for inner use 4561847f8eSopenharmony_ci * @since 9 4661847f8eSopenharmony_ci */ 4761847f8eSopenharmony_ci MSG_COOPERATE_INFO_START = 200, 4861847f8eSopenharmony_ci 4961847f8eSopenharmony_ci /** 5061847f8eSopenharmony_ci * Mouse traversal message: mouse traversal is successful. 5161847f8eSopenharmony_ci * 5261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 5361847f8eSopenharmony_ci * @systemapi hide for inner use 5461847f8eSopenharmony_ci * @since 9 5561847f8eSopenharmony_ci */ 5661847f8eSopenharmony_ci MSG_COOPERATE_INFO_SUCCESS = 201, 5761847f8eSopenharmony_ci 5861847f8eSopenharmony_ci /** 5961847f8eSopenharmony_ci * Mouse traversal message: mouse traversal fails. 6061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 6161847f8eSopenharmony_ci * @systemapi hide for inner use 6261847f8eSopenharmony_ci * @since 9 6361847f8eSopenharmony_ci */ 6461847f8eSopenharmony_ci MSG_COOPERATE_INFO_FAIL = 202, 6561847f8eSopenharmony_ci 6661847f8eSopenharmony_ci /** 6761847f8eSopenharmony_ci * Mouse traversal status: mouse traversal is enabled. 6861847f8eSopenharmony_ci * 6961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 7061847f8eSopenharmony_ci * @systemapi hide for inner use 7161847f8eSopenharmony_ci * @since 9 7261847f8eSopenharmony_ci */ 7361847f8eSopenharmony_ci MSG_COOPERATE_STATE_ON = 500, 7461847f8eSopenharmony_ci 7561847f8eSopenharmony_ci /** 7661847f8eSopenharmony_ci * Mouse traversal status: mouse traversal is disabled. 7761847f8eSopenharmony_ci * 7861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 7961847f8eSopenharmony_ci * @systemapi hide for inner use 8061847f8eSopenharmony_ci * @since 9 8161847f8eSopenharmony_ci */ 8261847f8eSopenharmony_ci MSG_COOPERATE_STATE_OFF = 501, 8361847f8eSopenharmony_ci } 8461847f8eSopenharmony_ci 8561847f8eSopenharmony_ci /** 8661847f8eSopenharmony_ci * Enable or disable the mouse traversal. 8761847f8eSopenharmony_ci * 8861847f8eSopenharmony_ci * @param { boolean } enable Whether to enable mouse traversal. 8961847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 9061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 9161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 9261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 9361847f8eSopenharmony_ci * @systemapi hide for inner use 9461847f8eSopenharmony_ci * @since 9 9561847f8eSopenharmony_ci */ 9661847f8eSopenharmony_ci /** 9761847f8eSopenharmony_ci * Enable or disable the mouse traversal. 9861847f8eSopenharmony_ci * 9961847f8eSopenharmony_ci * @param { boolean } enable Whether to enable mouse traversal. 10061847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 10161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 10261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 10361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 10461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 10561847f8eSopenharmony_ci * @systemapi hide for inner use 10661847f8eSopenharmony_ci * @since 12 10761847f8eSopenharmony_ci */ 10861847f8eSopenharmony_ci function enable(enable: boolean, callback: AsyncCallback<void>): void; 10961847f8eSopenharmony_ci 11061847f8eSopenharmony_ci /** 11161847f8eSopenharmony_ci * Enable or disable the mouse traversal. 11261847f8eSopenharmony_ci * 11361847f8eSopenharmony_ci * @param enable Whether to enable mouse traversal. 11461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 11561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 11661847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 11761847f8eSopenharmony_ci * @systemapi hide for inner use 11861847f8eSopenharmony_ci * @since 9 11961847f8eSopenharmony_ci */ 12061847f8eSopenharmony_ci /** 12161847f8eSopenharmony_ci * Enable or disable the mouse traversal. 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @param enable Whether to enable mouse traversal. 12461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 12561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 12661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 12761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 12861847f8eSopenharmony_ci * @systemapi hide for inner use 12961847f8eSopenharmony_ci * @since 12 13061847f8eSopenharmony_ci */ 13161847f8eSopenharmony_ci function enable(enable: boolean): Promise<void>; 13261847f8eSopenharmony_ci 13361847f8eSopenharmony_ci /** 13461847f8eSopenharmony_ci * Starts mouse traversal. 13561847f8eSopenharmony_ci * 13661847f8eSopenharmony_ci * @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal. 13761847f8eSopenharmony_ci * @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal. 13861847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 13961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 14061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 14161847f8eSopenharmony_ci * @throws { BusinessError } 4400001 - Incorrect descriptor for the target device. 14261847f8eSopenharmony_ci * @throws { BusinessError } 4400002 - Screen hop failed. 14361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 14461847f8eSopenharmony_ci * @systemapi hide for inner use 14561847f8eSopenharmony_ci * @since 9 14661847f8eSopenharmony_ci */ 14761847f8eSopenharmony_ci /** 14861847f8eSopenharmony_ci * Starts mouse traversal. 14961847f8eSopenharmony_ci * 15061847f8eSopenharmony_ci * @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal. 15161847f8eSopenharmony_ci * @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal. 15261847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 15361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 15461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 15561847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 15661847f8eSopenharmony_ci * @throws { BusinessError } 4400001 - Incorrect descriptor for the target device. 15761847f8eSopenharmony_ci * @throws { BusinessError } 4400002 - Screen hop failed. 15861847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 15961847f8eSopenharmony_ci * @systemapi hide for inner use 16061847f8eSopenharmony_ci * @since 12 16161847f8eSopenharmony_ci */ 16261847f8eSopenharmony_ci function start(sinkDeviceDescriptor: string, srcInputDeviceId: number, callback: AsyncCallback<void>): void; 16361847f8eSopenharmony_ci 16461847f8eSopenharmony_ci /** 16561847f8eSopenharmony_ci * Starts mouse traversal. 16661847f8eSopenharmony_ci * 16761847f8eSopenharmony_ci * @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal. 16861847f8eSopenharmony_ci * @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal. 16961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 17061847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 17161847f8eSopenharmony_ci * @throws { BusinessError } 4400001 - Incorrect descriptor for the target device. 17261847f8eSopenharmony_ci * @throws { BusinessError } 4400002 - Screen hop failed. 17361847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 17461847f8eSopenharmony_ci * @systemapi hide for inner use 17561847f8eSopenharmony_ci * @since 9 17661847f8eSopenharmony_ci */ 17761847f8eSopenharmony_ci /** 17861847f8eSopenharmony_ci * Starts mouse traversal. 17961847f8eSopenharmony_ci * 18061847f8eSopenharmony_ci * @param { string } sinkDeviceDescriptor Descriptor of the target network for mouse traversal. 18161847f8eSopenharmony_ci * @param { number } srcInputDeviceId Identifier of the peripheral device for mouse traversal. 18261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 18361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 18461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 18561847f8eSopenharmony_ci * @throws { BusinessError } 4400001 - Incorrect descriptor for the target device. 18661847f8eSopenharmony_ci * @throws { BusinessError } 4400002 - Screen hop failed. 18761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 18861847f8eSopenharmony_ci * @systemapi hide for inner use 18961847f8eSopenharmony_ci * @since 12 19061847f8eSopenharmony_ci */ 19161847f8eSopenharmony_ci function start(sinkDeviceDescriptor: string, srcInputDeviceId: number): Promise<void>; 19261847f8eSopenharmony_ci 19361847f8eSopenharmony_ci /** 19461847f8eSopenharmony_ci * Stops mouse traversal. 19561847f8eSopenharmony_ci * 19661847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 19761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 19861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 19961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 20061847f8eSopenharmony_ci * @systemapi hide for inner use 20161847f8eSopenharmony_ci * @since 9 20261847f8eSopenharmony_ci */ 20361847f8eSopenharmony_ci /** 20461847f8eSopenharmony_ci * Stops mouse traversal. 20561847f8eSopenharmony_ci * 20661847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback function. 20761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 20861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 20961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 21061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 21161847f8eSopenharmony_ci * @systemapi hide for inner use 21261847f8eSopenharmony_ci * @since 12 21361847f8eSopenharmony_ci */ 21461847f8eSopenharmony_ci function stop(callback: AsyncCallback<void>): void; 21561847f8eSopenharmony_ci 21661847f8eSopenharmony_ci /** 21761847f8eSopenharmony_ci * Stops mouse traversal. 21861847f8eSopenharmony_ci * 21961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 22061847f8eSopenharmony_ci * @systemapi hide for inner use 22161847f8eSopenharmony_ci * @since 9 22261847f8eSopenharmony_ci */ 22361847f8eSopenharmony_ci /** 22461847f8eSopenharmony_ci * Stops mouse traversal. 22561847f8eSopenharmony_ci * 22661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 22761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 22861847f8eSopenharmony_ci * @systemapi hide for inner use 22961847f8eSopenharmony_ci * @since 12 23061847f8eSopenharmony_ci */ 23161847f8eSopenharmony_ci function stop(): Promise<void>; 23261847f8eSopenharmony_ci 23361847f8eSopenharmony_ci /** 23461847f8eSopenharmony_ci * Obtains the status of the mouse traversal switch. 23561847f8eSopenharmony_ci * 23661847f8eSopenharmony_ci * @param {string} deviceDescriptor Descriptor of the target network for mouse traversal. 23761847f8eSopenharmony_ci * @param {AsyncCallback<{ state: boolean }>} callback Asynchronous callback used to receive the status of the mouse traversal switch. 23861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 23961847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 24061847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 24161847f8eSopenharmony_ci * @systemapi hide for inner use 24261847f8eSopenharmony_ci * @since 9 24361847f8eSopenharmony_ci */ 24461847f8eSopenharmony_ci /** 24561847f8eSopenharmony_ci * Obtains the status of the mouse traversal switch. 24661847f8eSopenharmony_ci * 24761847f8eSopenharmony_ci * @param {string} deviceDescriptor Descriptor of the target network for mouse traversal. 24861847f8eSopenharmony_ci * @param {AsyncCallback<{ state: boolean }>} callback Asynchronous callback used to receive the status of the mouse traversal switch. 24961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 25061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 25161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 25261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 25361847f8eSopenharmony_ci * @systemapi hide for inner use 25461847f8eSopenharmony_ci * @since 12 25561847f8eSopenharmony_ci */ 25661847f8eSopenharmony_ci function getState(deviceDescriptor: string, callback: AsyncCallback<{ state: boolean }>): void; 25761847f8eSopenharmony_ci 25861847f8eSopenharmony_ci /** 25961847f8eSopenharmony_ci * Obtains the status of the mouse traversal switch. 26061847f8eSopenharmony_ci * 26161847f8eSopenharmony_ci * @param deviceDescriptor Descriptor of the target network for mouse traversal. 26261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 26361847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 26461847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 26561847f8eSopenharmony_ci * @systemapi hide for inner use 26661847f8eSopenharmony_ci * @since 9 26761847f8eSopenharmony_ci */ 26861847f8eSopenharmony_ci /** 26961847f8eSopenharmony_ci * Obtains the status of the mouse traversal switch. 27061847f8eSopenharmony_ci * 27161847f8eSopenharmony_ci * @param deviceDescriptor Descriptor of the target network for mouse traversal. 27261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 27361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 27461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 27561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 27661847f8eSopenharmony_ci * @systemapi hide for inner use 27761847f8eSopenharmony_ci * @since 12 27861847f8eSopenharmony_ci */ 27961847f8eSopenharmony_ci function getState(deviceDescriptor: string): Promise<{ state: boolean }>; 28061847f8eSopenharmony_ci 28161847f8eSopenharmony_ci /** 28261847f8eSopenharmony_ci * Enables listening for mouse traversal events. 28361847f8eSopenharmony_ci * 28461847f8eSopenharmony_ci * @param { 'cooperation' } type Registration type. 28561847f8eSopenharmony_ci * @param { AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }> } callback Asynchronous callback used to receive mouse traversal events. 28661847f8eSopenharmony_ci * @returns Callback for the input device event. 28761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 28861847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 28961847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 29061847f8eSopenharmony_ci * @systemapi hide for inner use 29161847f8eSopenharmony_ci * @since 9 29261847f8eSopenharmony_ci */ 29361847f8eSopenharmony_ci /** 29461847f8eSopenharmony_ci * Enables listening for mouse traversal events. 29561847f8eSopenharmony_ci * 29661847f8eSopenharmony_ci * @param { 'cooperation' } type Registration type. 29761847f8eSopenharmony_ci * @param { AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }> } callback Asynchronous callback used to receive mouse traversal events. 29861847f8eSopenharmony_ci * @returns Callback for the input device event. 29961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 30061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 30161847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 30261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 30361847f8eSopenharmony_ci * @systemapi hide for inner use 30461847f8eSopenharmony_ci * @since 12 30561847f8eSopenharmony_ci */ 30661847f8eSopenharmony_ci function on(type: 'cooperation', callback: AsyncCallback<{ deviceDescriptor: string, eventMsg: EventMsg }>): void; 30761847f8eSopenharmony_ci 30861847f8eSopenharmony_ci /** 30961847f8eSopenharmony_ci * Disables listening for mouse traversal events. 31061847f8eSopenharmony_ci * 31161847f8eSopenharmony_ci * @param { 'cooperation' } type Registration type. 31261847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback used to return the result. 31361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 31461847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 31561847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 31661847f8eSopenharmony_ci * @systemapi hide for inner use 31761847f8eSopenharmony_ci * @since 9 31861847f8eSopenharmony_ci */ 31961847f8eSopenharmony_ci /** 32061847f8eSopenharmony_ci * Disables listening for mouse traversal events. 32161847f8eSopenharmony_ci * 32261847f8eSopenharmony_ci * @param { 'cooperation' } type Registration type. 32361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback Asynchronous callback used to return the result. 32461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 32561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 32661847f8eSopenharmony_ci * <br>2. Incorrect parameter types; 3. Parameter verification failed. 32761847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Cooperator 32861847f8eSopenharmony_ci * @systemapi hide for inner use 32961847f8eSopenharmony_ci * @since 12 33061847f8eSopenharmony_ci */ 33161847f8eSopenharmony_ci function off(type: 'cooperation', callback?: AsyncCallback<void>): void; 33261847f8eSopenharmony_ci 33361847f8eSopenharmony_ci} 33461847f8eSopenharmony_ci 33561847f8eSopenharmony_ciexport default inputDeviceCooperate;