setActivityMarker static method

  1. @Deprecated('Use setActivityMarkerAt function with this as the first parameter')
void setActivityMarker(
  1. String where,
  2. String marker
)

API to set custom activity trail markers.

where - Ideally pass the location where this API is executed. marker - String representation of the actvity.

Implementation

@Deprecated(
    'Use setActivityMarkerAt function with this as the first parameter')
static void setActivityMarker(String where, String marker) {
  if (Platform.isAndroid || Platform.isIOS) {
    ActivityTrail().addMarker(where, marker);
  } else {
    log("Platform not yet supported");
  }
}