mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
commit
2cf9fe2c7d
38
api/@ohos.enterprise.wifiManager.d.ts
vendored
38
api/@ohos.enterprise.wifiManager.d.ts
vendored
@ -846,6 +846,44 @@ declare namespace wifiManager {
|
||||
* @since 10
|
||||
*/
|
||||
function setWifiProfile(admin: Want, profile: WifiProfile): Promise<void>;
|
||||
|
||||
/**
|
||||
* Sets the Wi-Fi disabled.
|
||||
* This function can be called by a super administrator.
|
||||
*
|
||||
* @permission ohos.permission.ENTERPRISE_MANAGE_WIFI
|
||||
* @param { Want } admin - admin indicates the administrator ability information.
|
||||
* @param { boolean } disabled - true if set the Wi-Fi disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - the application is not an administrator of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - the application does not have permission to call this function.
|
||||
* @throws { BusinessError } 202 - not system application.
|
||||
* @throws { BusinessError } 401 - invalid input parameter.
|
||||
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
* @since 11
|
||||
*/
|
||||
function setWifiDisabled(admin: Want, disabled: boolean): void;
|
||||
|
||||
/**
|
||||
* Gets state of whether the Wi-Fi is disabled.
|
||||
* This function can be called by a super administrator.
|
||||
*
|
||||
* @permission ohos.permission.ENTERPRISE_MANAGE_WIFI
|
||||
* @param { Want } admin - admin indicates the administrator ability information.
|
||||
* @returns { boolean } true if the Wi-Fi is disabled, otherwise false.
|
||||
* @throws { BusinessError } 9200001 - the application is not an administrator of the device.
|
||||
* @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device.
|
||||
* @throws { BusinessError } 201 - the application does not have permission to call this function.
|
||||
* @throws { BusinessError } 202 - not system application.
|
||||
* @throws { BusinessError } 401 - invalid input parameter.
|
||||
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
* @since 11
|
||||
*/
|
||||
function isWifiDisabled(admin: Want): boolean;
|
||||
}
|
||||
|
||||
export default wifiManager;
|
||||
|
Loading…
Reference in New Issue
Block a user