getStatus method

  1. @override
Future<StatusResult?> getStatus({
  1. int timeout = 5,
  2. bool cache = true,
})
override

获取设备状态 @param cache 是否使用缓存,默认为true 使用缓存

Implementation

@override
Future<StatusResult?> getStatus({int timeout = 5, bool cache = true}) async {
  StatusResult? result =
      await super.getStatus(timeout: timeout, cache: cache);
  if (result != null) {
    await setCameraCommand(result);
  }
  return result;
}