TempoBuilder

class TempoBuilder

TempoBuilder is use to build TempoService object

Since

15.3.0

Constructors

TempoBuilder
Link copied to clipboard
fun TempoBuilder()

Functions

destinationId
Link copied to clipboard
fun destinationId(destinationId: String): TempoService.TempoBuilder
destinationId of the Zone for Tempo tracking Mandatory for Building TempoService
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
notification
Link copied to clipboard
fun notification(notification: Notification): TempoService.TempoBuilder
Notification to be used to run the Tempo service as a foreground service.
notificationId
Link copied to clipboard
fun notificationId(id: Int): TempoService.TempoBuilder
Id to use when starting the Tempo service as a foreground service.
start
Link copied to clipboard
fun start(context: Context, tempoStatusListener: TempoServiceStatusListener)
Call this method to start Tempo.
toString
Link copied to clipboard
open fun toString(): String

Properties

destinationId
Link copied to clipboard
var destinationId: String? = null
(Mandatory) destinationId to start Tempo
notification
Link copied to clipboard
var notification: Notification? = null
(Mandatory) foreground notification to be used for foreground service
notificationId
Link copied to clipboard
var notificationId: Int? = null
Id to display foreground notification