mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-04-03 04:32:05 +00:00
update wifi/wifiext AP syscap name
Signed-off-by: zhangfeng <hw.zhangfeng@huawei.com>
This commit is contained in:
parent
1e58b8583c
commit
61ee75c67f
30
api/@ohos.wifi.d.ts
vendored
30
api/@ohos.wifi.d.ts
vendored
@ -357,7 +357,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@code true} if this method is called successfully; returns {@code false} otherwise.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -370,7 +370,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@code true} if this method is called successfully; returns {@code false} otherwise.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -381,7 +381,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@code true} if the method is called successfully; returns {@code false} otherwise.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO, ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -392,7 +392,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@code true} if Wi-Fi hotspot is enabled; returns {@code false} otherwise.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -408,7 +408,7 @@ declare namespace wifi {
|
||||
* If {@code securityType} is not {@code open}, {@code preSharedKey} must be available and correct.
|
||||
* @return Returns {@code true} if the method is called successfully; returns {@code false} otherwise.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.SET_WIFI_INFO, ohos.permission.GET_WIFI_CONFIG
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -419,7 +419,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns the configuration of an existing or enabled Wi-Fi hotspot.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO, ohos.permission.GET_WIFI_CONFIG
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -432,7 +432,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns the list of clients that are connected to the Wi-Fi hotspot.
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO, ohos.permission.LOCATION, ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -669,7 +669,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns 0: inactive, 1: active, 2: activating, 3: deactivating
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO
|
||||
*/
|
||||
function on(type: "hotspotStateChange", callback: Callback<number>): void;
|
||||
@ -680,7 +680,7 @@ declare namespace wifi {
|
||||
* <p>All callback functions will be deregistered If there is no specific callback parameter.</p>
|
||||
*
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.GET_WIFI_INFO
|
||||
*/
|
||||
function off(type: "hotspotStateChange", callback?: Callback<number>): void;
|
||||
@ -690,7 +690,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns StationInfo
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -702,7 +702,7 @@ declare namespace wifi {
|
||||
* <p>All callback functions will be deregistered If there is no specific callback parameter.</p>
|
||||
*
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -713,7 +713,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@link #StationInfo} object
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -724,7 +724,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @return Returns {@link #StationInfo} object
|
||||
* @since 7
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT
|
||||
* @systemapi Hide this for inner system use.
|
||||
*/
|
||||
@ -1059,7 +1059,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @since 7
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
*/
|
||||
interface HotspotConfig {
|
||||
/** The SSID of the Wi-Fi hotspot */
|
||||
@ -1083,7 +1083,7 @@ declare namespace wifi {
|
||||
*
|
||||
* @since 7
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @syscap SystemCapability.Communication.WiFi.AP
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Core
|
||||
*/
|
||||
interface StationInfo {
|
||||
/** the network name of the Wi-Fi client */
|
||||
|
12
api/@ohos.wifiext.d.ts
vendored
12
api/@ohos.wifiext.d.ts
vendored
@ -32,7 +32,7 @@ declare namespace wifiext {
|
||||
* @return Returns {@code true} if this method is called successfully; returns {@code false} otherwise.
|
||||
* @since 8
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT_EXT
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
function enableHotspot(): boolean;
|
||||
|
||||
@ -42,7 +42,7 @@ declare namespace wifiext {
|
||||
* @return Returns {@code true} if this method is called successfully; returns {@code false} otherwise.
|
||||
* @since 8
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT_EXT
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
function disableHotspot(): boolean;
|
||||
|
||||
@ -53,7 +53,7 @@ declare namespace wifiext {
|
||||
*
|
||||
* @since 8
|
||||
* @permission ohos.permission.GET_WIFI_INFO
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
function getSupportedPowerModel(): Promise<Array<PowerModel>>;
|
||||
function getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>): void;
|
||||
@ -65,7 +65,7 @@ declare namespace wifiext {
|
||||
*
|
||||
* @since 8
|
||||
* @permission ohos.permission.GET_WIFI_INFO
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
function getPowerModel (): Promise<PowerModel>;
|
||||
function getPowerModel (callback: AsyncCallback<PowerModel>): void;
|
||||
@ -77,7 +77,7 @@ declare namespace wifiext {
|
||||
*
|
||||
* @since 8
|
||||
* @permission ohos.permission.MANAGE_WIFI_HOTSPOT_EXT
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
function setPowerModel(model: PowerModel) : boolean
|
||||
|
||||
@ -85,7 +85,7 @@ declare namespace wifiext {
|
||||
* The power model enumeration.
|
||||
*
|
||||
* @since 8
|
||||
* @syscap SystemCapability.Communication.WiFi.HotspotExt
|
||||
* @syscap SystemCapability.Communication.WiFi.AP.Extension
|
||||
*/
|
||||
export enum PowerModel {
|
||||
/** Sleeping model. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user