markAsClicked method

Future markAsClicked(
  1. String messageId
)

Report a click on this action.

CourierInbox does this for you when an action is pressed. Call it yourself when you build your own action buttons. A no-op when the action carries no tracking id.

Implementation

Future markAsClicked(String messageId) async {
  final id = trackingId;
  if (id == null) {
    return;
  }
  return Courier.shared.clickMessageAction(messageId: messageId, trackingId: id);
}