private void StartReminderService(long hourMultiplier) { Bundle bundle = new Bundle(); long ticks = 1000 * 60 * 60 * hourMultiplier; #if DEBUG ticks /= 60; #endif bundle.PutLong("ticks", ticks); ForegroundServiceHelper .StartForegroundServiceCompat <TimedReminderForegroundService>(this, bundle); }
private void StopReminderService() { ForegroundServiceHelper .StopForegroundServiceCompat <TimedReminderForegroundService>(this); }