Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void StopReminderService()
 {
     ForegroundServiceHelper
     .StopForegroundServiceCompat <TimedReminderForegroundService>(this);
 }