161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 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 ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Enumerates the icon styles. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @enum { number } 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 10 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Enumerates the icon styles. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @enum { number } 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @atomicservice 3461847f8eSopenharmony_ci * @since 11 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_cideclare enum LocationIconStyle { 3761847f8eSopenharmony_ci /** 3861847f8eSopenharmony_ci * Icon filled with the specified color. 3961847f8eSopenharmony_ci * 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @since 10 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_ci /** 4461847f8eSopenharmony_ci * Icon filled with the specified color. 4561847f8eSopenharmony_ci * 4661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4761847f8eSopenharmony_ci * @atomicservice 4861847f8eSopenharmony_ci * @since 11 4961847f8eSopenharmony_ci */ 5061847f8eSopenharmony_ci FULL_FILLED = 0, 5161847f8eSopenharmony_ci 5261847f8eSopenharmony_ci /** 5361847f8eSopenharmony_ci * Icon rendered as lines. 5461847f8eSopenharmony_ci * 5561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5661847f8eSopenharmony_ci * @since 10 5761847f8eSopenharmony_ci */ 5861847f8eSopenharmony_ci /** 5961847f8eSopenharmony_ci * Icon rendered as lines. 6061847f8eSopenharmony_ci * 6161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6261847f8eSopenharmony_ci * @atomicservice 6361847f8eSopenharmony_ci * @since 11 6461847f8eSopenharmony_ci */ 6561847f8eSopenharmony_ci LINES = 1 6661847f8eSopenharmony_ci} 6761847f8eSopenharmony_ci 6861847f8eSopenharmony_ci/** 6961847f8eSopenharmony_ci * Enumerates the text that can be displayed on the location button. 7061847f8eSopenharmony_ci * 7161847f8eSopenharmony_ci * @enum { number } 7261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7361847f8eSopenharmony_ci * @since 10 7461847f8eSopenharmony_ci */ 7561847f8eSopenharmony_ci/** 7661847f8eSopenharmony_ci * Enumerates the text that can be displayed on the location button. 7761847f8eSopenharmony_ci * 7861847f8eSopenharmony_ci * @enum { number } 7961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8061847f8eSopenharmony_ci * @atomicservice 8161847f8eSopenharmony_ci * @since 11 8261847f8eSopenharmony_ci */ 8361847f8eSopenharmony_cideclare enum LocationDescription { 8461847f8eSopenharmony_ci /** 8561847f8eSopenharmony_ci * Current Location 8661847f8eSopenharmony_ci * 8761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8861847f8eSopenharmony_ci * @since 10 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ci /** 9161847f8eSopenharmony_ci * Current Location 9261847f8eSopenharmony_ci * 9361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9461847f8eSopenharmony_ci * @atomicservice 9561847f8eSopenharmony_ci * @since 11 9661847f8eSopenharmony_ci */ 9761847f8eSopenharmony_ci CURRENT_LOCATION = 0, 9861847f8eSopenharmony_ci 9961847f8eSopenharmony_ci /** 10061847f8eSopenharmony_ci * Add Location 10161847f8eSopenharmony_ci * 10261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10361847f8eSopenharmony_ci * @since 10 10461847f8eSopenharmony_ci */ 10561847f8eSopenharmony_ci /** 10661847f8eSopenharmony_ci * Add Location 10761847f8eSopenharmony_ci * 10861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10961847f8eSopenharmony_ci * @atomicservice 11061847f8eSopenharmony_ci * @since 11 11161847f8eSopenharmony_ci */ 11261847f8eSopenharmony_ci ADD_LOCATION = 1, 11361847f8eSopenharmony_ci 11461847f8eSopenharmony_ci /** 11561847f8eSopenharmony_ci * Select Location 11661847f8eSopenharmony_ci * 11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11861847f8eSopenharmony_ci * @since 10 11961847f8eSopenharmony_ci */ 12061847f8eSopenharmony_ci /** 12161847f8eSopenharmony_ci * Select Location 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12461847f8eSopenharmony_ci * @atomicservice 12561847f8eSopenharmony_ci * @since 11 12661847f8eSopenharmony_ci */ 12761847f8eSopenharmony_ci SELECT_LOCATION = 2, 12861847f8eSopenharmony_ci 12961847f8eSopenharmony_ci /** 13061847f8eSopenharmony_ci * Share Location 13161847f8eSopenharmony_ci * 13261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13361847f8eSopenharmony_ci * @since 10 13461847f8eSopenharmony_ci */ 13561847f8eSopenharmony_ci /** 13661847f8eSopenharmony_ci * Share Location 13761847f8eSopenharmony_ci * 13861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13961847f8eSopenharmony_ci * @atomicservice 14061847f8eSopenharmony_ci * @since 11 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci SHARE_LOCATION = 3, 14361847f8eSopenharmony_ci 14461847f8eSopenharmony_ci /** 14561847f8eSopenharmony_ci * Send Location 14661847f8eSopenharmony_ci * 14761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14861847f8eSopenharmony_ci * @since 10 14961847f8eSopenharmony_ci */ 15061847f8eSopenharmony_ci /** 15161847f8eSopenharmony_ci * Send Location 15261847f8eSopenharmony_ci * 15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15461847f8eSopenharmony_ci * @atomicservice 15561847f8eSopenharmony_ci * @since 11 15661847f8eSopenharmony_ci */ 15761847f8eSopenharmony_ci SEND_LOCATION = 4, 15861847f8eSopenharmony_ci 15961847f8eSopenharmony_ci /** 16061847f8eSopenharmony_ci * Locating 16161847f8eSopenharmony_ci * 16261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16361847f8eSopenharmony_ci * @since 10 16461847f8eSopenharmony_ci */ 16561847f8eSopenharmony_ci /** 16661847f8eSopenharmony_ci * Locating 16761847f8eSopenharmony_ci * 16861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16961847f8eSopenharmony_ci * @atomicservice 17061847f8eSopenharmony_ci * @since 11 17161847f8eSopenharmony_ci */ 17261847f8eSopenharmony_ci LOCATING = 5, 17361847f8eSopenharmony_ci 17461847f8eSopenharmony_ci /** 17561847f8eSopenharmony_ci * Location 17661847f8eSopenharmony_ci * 17761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17861847f8eSopenharmony_ci * @since 10 17961847f8eSopenharmony_ci */ 18061847f8eSopenharmony_ci /** 18161847f8eSopenharmony_ci * Location 18261847f8eSopenharmony_ci * 18361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18461847f8eSopenharmony_ci * @atomicservice 18561847f8eSopenharmony_ci * @since 11 18661847f8eSopenharmony_ci */ 18761847f8eSopenharmony_ci LOCATION = 6, 18861847f8eSopenharmony_ci 18961847f8eSopenharmony_ci /** 19061847f8eSopenharmony_ci * Send Current Location 19161847f8eSopenharmony_ci * 19261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19361847f8eSopenharmony_ci * @since 10 19461847f8eSopenharmony_ci */ 19561847f8eSopenharmony_ci /** 19661847f8eSopenharmony_ci * Send Current Location 19761847f8eSopenharmony_ci * 19861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19961847f8eSopenharmony_ci * @atomicservice 20061847f8eSopenharmony_ci * @since 11 20161847f8eSopenharmony_ci */ 20261847f8eSopenharmony_ci SEND_CURRENT_LOCATION = 7, 20361847f8eSopenharmony_ci 20461847f8eSopenharmony_ci /** 20561847f8eSopenharmony_ci * Relocation 20661847f8eSopenharmony_ci * 20761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20861847f8eSopenharmony_ci * @since 10 20961847f8eSopenharmony_ci */ 21061847f8eSopenharmony_ci /** 21161847f8eSopenharmony_ci * Relocation 21261847f8eSopenharmony_ci * 21361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21461847f8eSopenharmony_ci * @atomicservice 21561847f8eSopenharmony_ci * @since 11 21661847f8eSopenharmony_ci */ 21761847f8eSopenharmony_ci RELOCATION = 8, 21861847f8eSopenharmony_ci 21961847f8eSopenharmony_ci /** 22061847f8eSopenharmony_ci * Punch In 22161847f8eSopenharmony_ci * 22261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22361847f8eSopenharmony_ci * @since 10 22461847f8eSopenharmony_ci */ 22561847f8eSopenharmony_ci /** 22661847f8eSopenharmony_ci * Punch In 22761847f8eSopenharmony_ci * 22861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22961847f8eSopenharmony_ci * @atomicservice 23061847f8eSopenharmony_ci * @since 11 23161847f8eSopenharmony_ci */ 23261847f8eSopenharmony_ci PUNCH_IN = 9, 23361847f8eSopenharmony_ci 23461847f8eSopenharmony_ci /** 23561847f8eSopenharmony_ci * Current Position 23661847f8eSopenharmony_ci * 23761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23861847f8eSopenharmony_ci * @since 10 23961847f8eSopenharmony_ci */ 24061847f8eSopenharmony_ci /** 24161847f8eSopenharmony_ci * Current Position 24261847f8eSopenharmony_ci * 24361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24461847f8eSopenharmony_ci * @atomicservice 24561847f8eSopenharmony_ci * @since 11 24661847f8eSopenharmony_ci */ 24761847f8eSopenharmony_ci CURRENT_POSITION = 10 24861847f8eSopenharmony_ci} 24961847f8eSopenharmony_ci 25061847f8eSopenharmony_ci/** 25161847f8eSopenharmony_ci * Declares the interface for setting the location button options. 25261847f8eSopenharmony_ci * 25361847f8eSopenharmony_ci * @interface LocationButtonOptions 25461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25561847f8eSopenharmony_ci * @since 10 25661847f8eSopenharmony_ci */ 25761847f8eSopenharmony_ci/** 25861847f8eSopenharmony_ci * Declares the interface for setting the location button options. 25961847f8eSopenharmony_ci * 26061847f8eSopenharmony_ci * @interface LocationButtonOptions 26161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26261847f8eSopenharmony_ci * @atomicservice 26361847f8eSopenharmony_ci * @since 11 26461847f8eSopenharmony_ci */ 26561847f8eSopenharmony_cideclare interface LocationButtonOptions { 26661847f8eSopenharmony_ci /** 26761847f8eSopenharmony_ci * Style of the icon to be drawn. 26861847f8eSopenharmony_ci * 26961847f8eSopenharmony_ci * @type { ?LocationIconStyle } 27061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27161847f8eSopenharmony_ci * @since 10 27261847f8eSopenharmony_ci */ 27361847f8eSopenharmony_ci /** 27461847f8eSopenharmony_ci * Style of the icon to be drawn. 27561847f8eSopenharmony_ci * 27661847f8eSopenharmony_ci * @type { ?LocationIconStyle } 27761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27861847f8eSopenharmony_ci * @atomicservice 27961847f8eSopenharmony_ci * @since 11 28061847f8eSopenharmony_ci */ 28161847f8eSopenharmony_ci icon?: LocationIconStyle; 28261847f8eSopenharmony_ci 28361847f8eSopenharmony_ci /** 28461847f8eSopenharmony_ci * Text to be displayed on the button. 28561847f8eSopenharmony_ci * 28661847f8eSopenharmony_ci * @type { ?LocationDescription } 28761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28861847f8eSopenharmony_ci * @since 10 28961847f8eSopenharmony_ci */ 29061847f8eSopenharmony_ci /** 29161847f8eSopenharmony_ci * Text to be displayed on the button. 29261847f8eSopenharmony_ci * 29361847f8eSopenharmony_ci * @type { ?LocationDescription } 29461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29561847f8eSopenharmony_ci * @atomicservice 29661847f8eSopenharmony_ci * @since 11 29761847f8eSopenharmony_ci */ 29861847f8eSopenharmony_ci text?: LocationDescription; 29961847f8eSopenharmony_ci 30061847f8eSopenharmony_ci /** 30161847f8eSopenharmony_ci * Type of the button. 30261847f8eSopenharmony_ci * 30361847f8eSopenharmony_ci * @type { ?ButtonType } 30461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30561847f8eSopenharmony_ci * @since 10 30661847f8eSopenharmony_ci */ 30761847f8eSopenharmony_ci /** 30861847f8eSopenharmony_ci * Type of the button. 30961847f8eSopenharmony_ci * 31061847f8eSopenharmony_ci * @type { ?ButtonType } 31161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31261847f8eSopenharmony_ci * @atomicservice 31361847f8eSopenharmony_ci * @since 11 31461847f8eSopenharmony_ci */ 31561847f8eSopenharmony_ci buttonType?: ButtonType; 31661847f8eSopenharmony_ci} 31761847f8eSopenharmony_ci 31861847f8eSopenharmony_ci/** 31961847f8eSopenharmony_ci * Enumerates the click event results of the location button. 32061847f8eSopenharmony_ci * 32161847f8eSopenharmony_ci * @enum { number } 32261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32361847f8eSopenharmony_ci * @since 10 32461847f8eSopenharmony_ci */ 32561847f8eSopenharmony_ci/** 32661847f8eSopenharmony_ci * Enumerates the click event results of the location button. 32761847f8eSopenharmony_ci * 32861847f8eSopenharmony_ci * @enum { number } 32961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33061847f8eSopenharmony_ci * @atomicservice 33161847f8eSopenharmony_ci * @since 11 33261847f8eSopenharmony_ci */ 33361847f8eSopenharmony_cideclare enum LocationButtonOnClickResult { 33461847f8eSopenharmony_ci /** 33561847f8eSopenharmony_ci * Success. 33661847f8eSopenharmony_ci * 33761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33861847f8eSopenharmony_ci * @since 10 33961847f8eSopenharmony_ci */ 34061847f8eSopenharmony_ci /** 34161847f8eSopenharmony_ci * Success. 34261847f8eSopenharmony_ci * 34361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34461847f8eSopenharmony_ci * @atomicservice 34561847f8eSopenharmony_ci * @since 11 34661847f8eSopenharmony_ci */ 34761847f8eSopenharmony_ci SUCCESS = 0, 34861847f8eSopenharmony_ci 34961847f8eSopenharmony_ci /** 35061847f8eSopenharmony_ci * Failure because the application is not temporarily authorized for accessing location data. 35161847f8eSopenharmony_ci * 35261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35361847f8eSopenharmony_ci * @since 10 35461847f8eSopenharmony_ci */ 35561847f8eSopenharmony_ci /** 35661847f8eSopenharmony_ci * Failure because the application is not temporarily authorized for accessing location data. 35761847f8eSopenharmony_ci * 35861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35961847f8eSopenharmony_ci * @atomicservice 36061847f8eSopenharmony_ci * @since 11 36161847f8eSopenharmony_ci */ 36261847f8eSopenharmony_ci TEMPORARY_AUTHORIZATION_FAILED = 1 36361847f8eSopenharmony_ci} 36461847f8eSopenharmony_ci 36561847f8eSopenharmony_ci/** 36661847f8eSopenharmony_ci * Defines the interface for setting a location button. 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @interface LocationButtonInterface 36961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37061847f8eSopenharmony_ci * @since 10 37161847f8eSopenharmony_ci */ 37261847f8eSopenharmony_ci/** 37361847f8eSopenharmony_ci * Defines the interface for setting a location button. 37461847f8eSopenharmony_ci * 37561847f8eSopenharmony_ci * @interface LocationButtonInterface 37661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37761847f8eSopenharmony_ci * @atomicservice 37861847f8eSopenharmony_ci * @since 11 37961847f8eSopenharmony_ci */ 38061847f8eSopenharmony_ciinterface LocationButtonInterface { 38161847f8eSopenharmony_ci /** 38261847f8eSopenharmony_ci * Creates a location button. 38361847f8eSopenharmony_ci * 38461847f8eSopenharmony_ci * @returns { LocationButtonAttribute } TReturns the attribute of the location button. 38561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 38661847f8eSopenharmony_ci * @since 10 38761847f8eSopenharmony_ci */ 38861847f8eSopenharmony_ci /** 38961847f8eSopenharmony_ci * Creates a location button. 39061847f8eSopenharmony_ci * 39161847f8eSopenharmony_ci * @returns { LocationButtonAttribute } TReturns the attribute of the location button. 39261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39361847f8eSopenharmony_ci * @atomicservice 39461847f8eSopenharmony_ci * @since 11 39561847f8eSopenharmony_ci */ 39661847f8eSopenharmony_ci (): LocationButtonAttribute; 39761847f8eSopenharmony_ci 39861847f8eSopenharmony_ci /** 39961847f8eSopenharmony_ci * Creates a location button with the specified composition. 40061847f8eSopenharmony_ci * If an attribute is not set, the corresponding element will not be drawn. 40161847f8eSopenharmony_ci * 40261847f8eSopenharmony_ci * @param { LocationButtonOptions } options - Indicates the options of the location button. 40361847f8eSopenharmony_ci * @returns { LocationButtonAttribute } Returns the attribute of the location button. 40461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40561847f8eSopenharmony_ci * @since 10 40661847f8eSopenharmony_ci */ 40761847f8eSopenharmony_ci /** 40861847f8eSopenharmony_ci * Creates a location button with the specified composition. 40961847f8eSopenharmony_ci * If an attribute is not set, the corresponding element will not be drawn. 41061847f8eSopenharmony_ci * 41161847f8eSopenharmony_ci * @param { LocationButtonOptions } options - Indicates the options of the location button. 41261847f8eSopenharmony_ci * @returns { LocationButtonAttribute } Returns the attribute of the location button. 41361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41461847f8eSopenharmony_ci * @atomicservice 41561847f8eSopenharmony_ci * @since 11 41661847f8eSopenharmony_ci */ 41761847f8eSopenharmony_ci (options: LocationButtonOptions): LocationButtonAttribute; 41861847f8eSopenharmony_ci} 41961847f8eSopenharmony_ci 42061847f8eSopenharmony_ci/** 42161847f8eSopenharmony_ci * Defines the attributes of the location button. 42261847f8eSopenharmony_ci * 42361847f8eSopenharmony_ci * @extends SecurityComponentMethod<LocationButtonAttribute> 42461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42561847f8eSopenharmony_ci * @since 10 42661847f8eSopenharmony_ci */ 42761847f8eSopenharmony_ci/** 42861847f8eSopenharmony_ci * Defines the attributes of the location button. 42961847f8eSopenharmony_ci * 43061847f8eSopenharmony_ci * @extends SecurityComponentMethod<LocationButtonAttribute> 43161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43261847f8eSopenharmony_ci * @atomicservice 43361847f8eSopenharmony_ci * @since 11 43461847f8eSopenharmony_ci */ 43561847f8eSopenharmony_cideclare class LocationButtonAttribute extends SecurityComponentMethod<LocationButtonAttribute> { 43661847f8eSopenharmony_ci /** 43761847f8eSopenharmony_ci * Called when the location button is clicked. 43861847f8eSopenharmony_ci * 43961847f8eSopenharmony_ci * @param { function } event 44061847f8eSopenharmony_ci * @returns { LocationButtonAttribute } Returns the attribute of the location button. 44161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44261847f8eSopenharmony_ci * @since 10 44361847f8eSopenharmony_ci */ 44461847f8eSopenharmony_ci /** 44561847f8eSopenharmony_ci * Called when the location button is clicked. 44661847f8eSopenharmony_ci * 44761847f8eSopenharmony_ci * @param { function } event 44861847f8eSopenharmony_ci * @returns { LocationButtonAttribute } Returns the attribute of the location button. 44961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45061847f8eSopenharmony_ci * @atomicservice 45161847f8eSopenharmony_ci * @since 11 45261847f8eSopenharmony_ci */ 45361847f8eSopenharmony_ci onClick(event: (event: ClickEvent, result: LocationButtonOnClickResult) => void): LocationButtonAttribute; 45461847f8eSopenharmony_ci} 45561847f8eSopenharmony_ci 45661847f8eSopenharmony_ci/** 45761847f8eSopenharmony_ci * Defines a button that interacts with the security component service to 45861847f8eSopenharmony_ci * request the authorization for accessing location data. 45961847f8eSopenharmony_ci * 46061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46161847f8eSopenharmony_ci * @since 10 46261847f8eSopenharmony_ci */ 46361847f8eSopenharmony_ci/** 46461847f8eSopenharmony_ci * Defines a button that interacts with the security component service to 46561847f8eSopenharmony_ci * request the authorization for accessing location data. 46661847f8eSopenharmony_ci * 46761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46861847f8eSopenharmony_ci * @atomicservice 46961847f8eSopenharmony_ci * @since 11 47061847f8eSopenharmony_ci */ 47161847f8eSopenharmony_cideclare const LocationButton: LocationButtonInterface; 47261847f8eSopenharmony_ci 47361847f8eSopenharmony_ci/** 47461847f8eSopenharmony_ci * Defines a location button instance for secure access. 47561847f8eSopenharmony_ci * 47661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47761847f8eSopenharmony_ci * @since 10 47861847f8eSopenharmony_ci */ 47961847f8eSopenharmony_ci/** 48061847f8eSopenharmony_ci * Defines a location button instance for secure access. 48161847f8eSopenharmony_ci * 48261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48361847f8eSopenharmony_ci * @atomicservice 48461847f8eSopenharmony_ci * @since 11 48561847f8eSopenharmony_ci */ 48661847f8eSopenharmony_cideclare const LocationButtonInstance: LocationButtonAttribute; 487