Adjacent Files

Project Info

. > app > src > main > java > james > alarmio > services > StopwatchService.java

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.

This site may do shady things with cookies and stuff because it's evil. Please don't read my privacy policy. close