updateGroupProfileImage static method

Future<void> updateGroupProfileImage({
  1. required String jid,
  2. required String file,
  3. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Updates the profile image of a group.

This method updates the profile image of the specified group.

Params:

  • jid : The JID of the group.
  • file : The file path of the new profile image.

Returns:

  • flyCallBack : A callback function that is called with with a FlyResponse.

Usage example:

String jid = "group_jid";
String file = "path/to/image.jpg";
Mirrorfly.updateGroupProfileImage(
  jid: jid,
  file: file,
  flyCallBack: (response) {
    // Handle the response
    print("Group profile image updated: $response");
  },
);

Implementation

///
/// Returns:
/// - [flyCallBack] : A callback function that is called with with a [FlyResponse].
///
/// Usage example:
/// ```dart
/// String jid = "group_jid";
/// String file = "path/to/image.jpg";
/// Mirrorfly.updateGroupProfileImage(
///   jid: jid,
///   file: file,
///   flyCallBack: (response) {
///     // Handle the response
///     print("Group profile image updated: $response");
///   },
/// );
/// ```
static Future<void> updateGroupProfileImage(
    {required String jid,
    required String file,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .updateGroupProfileImage(jid, file, flyCallBack);
}