sendSoundMessage method

Future<V2TimValueCallback<V2TimMessage>> sendSoundMessage({
  1. required String soundPath,
  2. required String receiver,
  3. int? duration,
  4. String? groupID,
  5. int? priority,
  6. bool onlineUserOnly = false,
})

ๅ‘้€ๆ–‡ไปถ

Implementation

Future<V2TimValueCallback<V2TimMessage>> sendSoundMessage({
  required String soundPath,
  required String receiver,
  int? duration,
  String? groupID,
  int? priority,
  bool onlineUserOnly = false,
}) async {
  return V2TimValueCallback<V2TimMessage>.fromJson(
    _formatJson(
      await _channel.invokeMethod(
        "sendSoundMessage",
        _buildParam(
          {
            "soundPath": soundPath,
            "receiver": receiver,
            "duration": duration,
            "groupID": groupID,
            "priority": priority,
            "onlineUserOnly": onlineUserOnly,
          },
        ),
      ),
    ),
  );
}