createSoundMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createSoundMessage({
  1. required String soundPath,
  2. required int duration,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createSoundMessage({
  required String soundPath,
  required int duration,
}) async {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createSoundMessage",
        buildMessageMangerParam(
          {
            "soundPath": soundPath,
            "duration": duration,
          },
        ),
      ),
    ),
  );
}