Class Info |
|---|
public class DeviceInfraredManager 设备红外管理类。 |
Qualifier and Type | Method Name and Description |
|---|---|
boolean | setInfrardDisabled(ComponentName admin, boolean isDisabled) 禁止/允许红外功能。 |
Supported Devices
Device Type | OS Version |
|---|---|
手机、平板 | EMUI 8.0及以上或HarmonyOS 2.0及以上 |
Method |
|---|
public boolean setInfrardDisabled(ComponentName admin, boolean isDisabled) 允许/禁止红外功能。 注意:需要申请com.huawei.permission.sec.MDM_INFRARED权限。 |
Parameters
Name | Description |
|---|---|
admin | 调用该接口的APK的组件名称,不能为null。 |
isDisabled |
|
Return
Type | Description |
|---|---|
boolean |
|
Throws
Name | Description |
|---|---|
SecurityException |
|