reportActivity static method

Future reportActivity(
  1. String id,
  2. int reason,
  3. String explanation
)

Report an activity.

id Activity id to report. reason Reason of reporting. explanation Explanation of reason.

Implementation

static Future reportActivity(String id, int reason, String explanation) {
  Map<String, dynamic> reportActivityBody = {
    'activityId': id,
    'reason': reason,
    'explanation': explanation,
  };
  return NativeBridge.async(
      'Communities.reportActivity', jsonEncode(reportActivityBody));
}