> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The APIs described in this document are used only for non-universal products, such as routers.
The APIs of this module are not supported by OpenHarmony 3.1 Release.
## Modules to Import
...
...
@@ -17,13 +18,13 @@ enableHotspot(): boolean;
Enables the WLAN hotspot.
-Required permissions:
-**Required permissions**:
ohos.permission.MANAGE_WIFI_HOTSPOT_EXT
-System capability:
-**System capability**:
SystemCapability.Communication.WiFi.AP.Extension
-Return value
-**Return value**:
| **Type**| **Description**|
| -------- | -------- |
| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
...
...
@@ -35,13 +36,13 @@ disableHotspot(): boolean;
Disables the WLAN hotspot.
-Required permissions:
-**Required permissions**:
ohos.permission.MANAGE_WIFI_HOTSPOT_EXT
-System capability:
-**System capability**:
SystemCapability.Communication.WiFi.AP.Extension
-Return value
-**Return value**:
| **Type**| **Description**|
| -------- | -------- |
| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|