sendCrossDeviceTransCommand method
Future<void>
sendCrossDeviceTransCommand(
- {required String? message,
- required JMPlatformType? platform}
设备间透传命令
Implementation
Future<void> sendCrossDeviceTransCommand({
required String? message,
required JMPlatformType? platform,
}) async {
Map param = Map();
param["message"] = message;
param["type"] = getStringFromEnum(platform);
param.removeWhere((key, value) => value == null);
await _channel.invokeMethod('sendCrossDeviceTransCommand', param);
}