androidNotification method

TempoBuilder androidNotification(
  1. String channelId,
  2. String channelName,
  3. String androidNotificationTitle,
  4. String androidNotificationContent,
  5. int androidNotificationId,
)

Set parameters for foreground service notification. Only required for apps targeting Android O and above. This is required to run Tempo Tracking service.

Implementation

TempoBuilder androidNotification (String channelId, String channelName, String androidNotificationTitle, String androidNotificationContent, int androidNotificationId) {
  this.channelId = channelId;
  this.channelName = channelName;
  this.androidNotificationTitle = androidNotificationTitle;
  this.androidNotificationContent = androidNotificationContent;
  this.androidNotificationId = androidNotificationId;

  return this;
}