createImageMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage({
  1. required String imagePath,
  2. dynamic inputElement,
  3. String? imageName,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage({required String imagePath, dynamic inputElement, String? imageName}) async {
  return V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createImageMessage",
        buildMessageMangerParam(
          {"imagePath": imagePath},
        ),
      ),
    ),
  );
}