Huawei Analytics Custom Events

Home   »   Huawei Analytics Custom Events

/// Huawei Analytics
///
/// Custom Event
void exploreEvent() async {
  /// Creting custom event
  String name = "explore";
  Map value = {
    "product": productName,
    "user": userId,
  };

  /// Sending an event
  widget.hmsAnalytics.onEvent(name, value);
}

/// Huawei Analytics
///
/// Custom Event
void exploreWithImageEvent() async {
  /// Creting custom event
  String name = "exploreWithImage";
  Map value = {
    "product": productName,
    "user": userId,
  };

  /// Sending an event
  widget.hmsAnalytics.onEvent(name, value);
}

Leave a Reply

Your email address will not be published. Required fields are marked *