diff --git a/api/@ohos.wifiManager.d.ts b/api/@ohos.wifiManager.d.ts index 90cbbfa9dcf78eb6caca97b66c76b257f27a60c4..32577605a6c0f2cb547733b9516aa02920c8a63b 100644 --- a/api/@ohos.wifiManager.d.ts +++ b/api/@ohos.wifiManager.d.ts @@ -587,11 +587,11 @@ declare namespace wifiManager { /** * Calculate the Wi-Fi signal level based on the Wi-Fi RSSI and frequency band. * @permission ohos.permission.GET_WIFI_INFO - * @param { number } rssi - Indicates the Wi-Fi RSSI. - * @param { number } band - Indicates the Wi-Fi frequency band. - * @returns { number } Returns Wi-Fi signal level ranging from 0 to 4. + * @param { int } rssi - Indicates the Wi-Fi RSSI. + * @param { int } band - Indicates the Wi-Fi frequency band. + * @returns { int } Returns Wi-Fi signal level ranging from 0 to 4. * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -599,7 +599,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function getSignalLevel(rssi: number, band: number): number; + function getSignalLevel(rssi: int, band: int): int; /** * Obtain connection information about the Wi-Fi connection. If does't have the permission of ohos.permission.GET_WIFI_PEERS_MAC, return random bssid. @@ -1583,7 +1583,7 @@ declare namespace wifiManager { * @param { 'wifiStateChange' } type - event name. * @param { Callback } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1596,9 +1596,9 @@ declare namespace wifiManager { * When the service exits, call off(type: 'wifiStateChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiStateChange' } type - event name. - * @param { Callback } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating + * @param { Callback } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1608,7 +1608,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'wifiStateChange', callback: Callback): void; + function on(type: 'wifiStateChange', callback: Callback): void; /** * Unsubscribe Wi-Fi status change events. @@ -1618,7 +1618,7 @@ declare namespace wifiManager { * @param { 'wifiStateChange' } type - event name. * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1632,9 +1632,9 @@ declare namespace wifiManager { *

All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiStateChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1644,7 +1644,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'wifiStateChange', callback?: Callback): void; + function off(type: 'wifiStateChange', callback?: Callback): void; /** * Subscribe Wi-Fi connection change events. @@ -1653,7 +1653,7 @@ declare namespace wifiManager { * @param { 'wifiConnectionChange' } type - event name. * @param { Callback } callback - the callback of on, 0: disconnected, 1: connected * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1666,9 +1666,9 @@ declare namespace wifiManager { * When the service exits, call off(type: 'wifiConnectionChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiConnectionChange' } type - event name. - * @param { Callback } callback - the callback of on, 0: disconnected, 1: connected + * @param { Callback } callback - the callback of on, 0: disconnected, 1: connected * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1678,7 +1678,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'wifiConnectionChange', callback: Callback): void; + function on(type: 'wifiConnectionChange', callback: Callback): void; /** * Unsubscribe Wi-Fi connection change events. @@ -1687,7 +1687,7 @@ declare namespace wifiManager { * @param { 'wifiConnectionChange' } type - event name. * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1700,9 +1700,9 @@ declare namespace wifiManager { * All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiConnectionChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1712,7 +1712,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'wifiConnectionChange', callback?: Callback): void; + function off(type: 'wifiConnectionChange', callback?: Callback): void; /** * Subscribe Wi-Fi scan status change events. @@ -1721,7 +1721,7 @@ declare namespace wifiManager { * @param { 'wifiScanStateChange' } type - event name. * @param { Callback } callback - the callback of on, 0: scan fail, 1: scan success * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1734,9 +1734,9 @@ declare namespace wifiManager { * When the service exits, call off(type: 'wifiScanStateChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiScanStateChange' } type - event name. - * @param { Callback } callback - the callback of on, 0: scan fail, 1: scan success + * @param { Callback } callback - the callback of on, 0: scan fail, 1: scan success * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1745,7 +1745,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'wifiScanStateChange', callback: Callback): void; + function on(type: 'wifiScanStateChange', callback: Callback): void; /** * Unsubscribe Wi-Fi scan status change events. @@ -1754,7 +1754,7 @@ declare namespace wifiManager { * @param { 'wifiScanStateChange' } type - event name. * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1767,9 +1767,9 @@ declare namespace wifiManager { * All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiScanStateChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1778,16 +1778,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'wifiScanStateChange', callback?: Callback): void; + function off(type: 'wifiScanStateChange', callback?: Callback): void; /** * Subscribe Wi-Fi rssi change events. * When the service exits, call off(type: 'wifiRssiChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiRssiChange' } type - event name. - * @param { Callback } callback - the callback of on + * @param { Callback } callback - the callback of on * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1795,16 +1795,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'wifiRssiChange', callback: Callback): void; + function on(type: 'wifiRssiChange', callback: Callback): void; /** * Unsubscribe Wi-Fi rssi change events. * All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.GET_WIFI_INFO * @param { 'wifiRssiChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1812,16 +1812,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'wifiRssiChange', callback?: Callback): void; + function off(type: 'wifiRssiChange', callback?: Callback): void; /** * Subscribe Wi-Fi stream change events. * @permission ohos.permission.MANAGE_WIFI_CONNECTION * @param { 'streamChange' } type - event name. - * @param { Callback } callback - the callback of on, 1: stream down, 2: stream up, 3: stream bidirectional + * @param { Callback } callback - the callback of on, 1: stream down, 2: stream up, 3: stream bidirectional * @throws {BusinessError} 201 - Permission denied. * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1830,17 +1830,17 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'streamChange', callback: Callback): void; + function on(type: 'streamChange', callback: Callback): void; /** * Unsubscribe Wi-Fi stream change events. * All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.MANAGE_WIFI_CONNECTION * @param { 'streamChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1849,16 +1849,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'streamChange', callback?: Callback): void; + function off(type: 'streamChange', callback?: Callback): void; /** * Subscribe Wi-Fi device config change events. * @permission ohos.permission.GET_WIFI_INFO * @param { 'deviceConfigChange' } type - event name. - * @param { Callback } callback - the callback of on, 0: config is added, 1: config is changed, 2: config is removed. + * @param { Callback } callback - the callback of on, 0: config is added, 1: config is changed, 2: config is removed. * @throws {BusinessError} 201 - Permission denied. * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1867,16 +1867,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'deviceConfigChange', callback: Callback): void; + function on(type: 'deviceConfigChange', callback: Callback): void; /** * Subscribe Wi-Fi device config change events. * @permission ohos.permission.GET_WIFI_INFO * @param { 'deviceConfigChange' } type - event name. - * @param { Callback } callback - the callback of off, 0: config is added, 1: config is changed, 2: config is removed. + * @param { Callback } callback - the callback of off, 0: config is added, 1: config is changed, 2: config is removed. * @throws {BusinessError} 201 - Permission denied. * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. @@ -1885,17 +1885,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'deviceConfigChange', callback?: Callback): void; + function off(type: 'deviceConfigChange', callback?: Callback): void; /** * Subscribe Wi-Fi hotspot state change events. * When the service exits, call off(type: 'hotspotStateChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'hotspotStateChange' } type - event name. - * @param { Callback } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating + * @param { Callback } callback - the callback of on, 0: inactive, 1: active, 2: activating, 3: de-activating * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2601000 - Operation failed. @@ -1903,17 +1902,16 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'hotspotStateChange', callback: Callback): void; + function on(type: 'hotspotStateChange', callback: Callback): void; /** * Unsubscribe Wi-Fi hotspot state change events. * All callback functions will be deregistered If there is no specific callback parameter.

* @permission ohos.permission.GET_WIFI_INFO - * @param { 'hotspotStateChange'} type - event name. - * @param { Callback } callback - the callback of off + * @param { 'hotspotStateChange' } type - event name. + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2601000 - Operation failed. @@ -1921,7 +1919,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'hotspotStateChange', callback?: Callback): void; + function off(type: 'hotspotStateChange', callback?: Callback): void; /** * Subscribe Wi-Fi hotspot sta join events. @@ -2002,9 +2000,9 @@ declare namespace wifiManager { * When the service exits, call off(type: 'p2pStateChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'p2pStateChange' } type - event name. - * @param { Callback } callback - the callback of on, 1: idle, 2: starting, 3:started, 4: closing, 5: closed + * @param { Callback } callback - the callback of on, 1: idle, 2: starting, 3:started, 4: closing, 5: closed * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2801000 - Operation failed. @@ -2012,15 +2010,15 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'p2pStateChange', callback: Callback): void; + function on(type: 'p2pStateChange', callback: Callback): void; /** * Unsubscribe P2P status change events. * @permission ohos.permission.GET_WIFI_INFO * @param { 'p2pStateChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2801000 - Operation failed. @@ -2028,7 +2026,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'p2pStateChange', callback?: Callback): void; + function off(type: 'p2pStateChange', callback?: Callback): void; /** * Subscribe P2P connection change events. @@ -2219,9 +2217,9 @@ declare namespace wifiManager { * When the service exits, call off(type: 'p2pDiscoveryChange', callback?: Callback<number>) to unregister the callback registered. * @permission ohos.permission.GET_WIFI_INFO * @param { 'p2pDiscoveryChange' } type - event name. - * @param { Callback } callback - the callback of on + * @param { Callback } callback - the callback of on * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2801000 - Operation failed. @@ -2229,15 +2227,15 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function on(type: 'p2pDiscoveryChange', callback: Callback): void; + function on(type: 'p2pDiscoveryChange', callback: Callback): void; /** * Unsubscribe P2P discovery events. * @permission ohos.permission.GET_WIFI_INFO * @param { 'p2pDiscoveryChange' } type - event name. - * @param { Callback } callback - the callback of off + * @param { Callback } callback - the callback of off * @throws {BusinessError} 201 - Permission denied. - * @throws {BusinessError} 401 - Invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified. + * @throws {BusinessError} 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2801000 - Operation failed. @@ -2245,7 +2243,7 @@ declare namespace wifiManager { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - function off(type: 'p2pDiscoveryChange', callback?: Callback): void; + function off(type: 'p2pDiscoveryChange', callback?: Callback): void; /** * Wi-Fi device address( mac / bssid ) type. @@ -2256,7 +2254,7 @@ declare namespace wifiManager { /** * Wi-Fi device address( mac / bssid ) type. - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} @@ -2449,7 +2447,7 @@ declare namespace wifiManager { /** * Wi-Fi detail state. - * @enum { number } WifiDetailState + * @enum { int } WifiDetailState * @syscap SystemCapability.Communication.WiFi.STA * @systemapi Hide this for inner system use. * @since arkts {'1.1':'12', '1.2':'20'} @@ -2555,7 +2553,7 @@ declare namespace wifiManager { /** * Wi-Fi Category. - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.STA * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 @@ -3307,22 +3305,22 @@ declare namespace wifiManager { */ /** * Received signal strength indicator (RSSI) - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.STA * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - rssi: number; + rssi: int; /** * Frequency band, 1: 2.4G, 2: 5G - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.STA * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - band: number; + band: int; /** * Frequency @@ -3405,7 +3403,7 @@ declare namespace wifiManager { */ /** * Describes the wifi security type. - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} @@ -3712,22 +3710,22 @@ declare namespace wifiManager { */ /** * The RSSI(dBm) of a Wi-Fi access point. - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.STA * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - rssi: number; + rssi: int; /** * The frequency band of a Wi-Fi access point. - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.STA * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - band: number; + band: int; /** * The speed of a Wi-Fi access point. @@ -3905,12 +3903,12 @@ declare namespace wifiManager { interface IpInfo { /** * The IP address of the Wi-Fi connection - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.STA * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - ipAddress: number; + ipAddress: int; /** * The gateway of the Wi-Fi connection @@ -4074,13 +4072,13 @@ declare namespace wifiManager { /** * The frequency band of the Wi-Fi hotspot - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.AP.Core * @systemapi Hide this for inner system use. * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - band: number; + band: int; /** * The channel of the Wi-Fi hotspot. @@ -4310,7 +4308,7 @@ declare namespace wifiManager { /** * The state of Wi-Fi connection enumeration. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.STA * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 @@ -4445,12 +4443,12 @@ declare namespace wifiManager { /** * Device group capabilities - * @type { number } + * @type { int } * @syscap SystemCapability.Communication.WiFi.P2P * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - groupCapabilities: number; + groupCapabilities: int; } /** @@ -4595,7 +4593,7 @@ declare namespace wifiManager { /** * P2P connection status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.P2P * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 @@ -4658,7 +4656,7 @@ declare namespace wifiManager { /** * P2P device status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Communication.WiFi.P2P * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2