isDeviceFunction method

Future<bool> isDeviceFunction(
  1. String deviceId,
  2. DeviceFunctionType type
)

查询指定设备是否 支持指定的功能或者是硬件

Implementation

Future<bool> isDeviceFunction(
    String deviceId, DeviceFunctionType type) async {
  try {


    return await methodChannel.invokeMethod(
        "isDeviceFunction", {"deviceId": deviceId, "type": type.name});
  } catch (e) {
    rethrow;
  }
}