Projects Alarmio Docs StopwatchService

reset

Type: public void

Reset the stopwatch, cancelling any notifications and setting everything to zero.

toggle

Type: public void

Toggle whether the stopwatch is currently running (pausing it and storing a temporary time if so).

lap

Type: public void

Record the current time as a "lap".

getNotification

Type: private Notification

Get a notification to send to the user for the current time.

Parameter Name Description
time A formatted string defining the current time on the stopwatch.

Returned Value: A notification to use for this stopwatch.