private void CancelAlarm(Context context) { // Tell service to stop alarms WeatherComplicationIntentService.EnqueueWork(context, new Intent(context, typeof(WeatherComplicationIntentService)) .SetAction(WeatherComplicationIntentService.ACTION_CANCELALARM)); }
private void StartAlarm(Context context) { // Tell service to start alarm WeatherComplicationIntentService.EnqueueWork(context, new Intent(context, typeof(WeatherComplicationIntentService)) .SetAction(WeatherComplicationIntentService.ACTION_STARTALARM)); }
public override void OnReceive(Context context, Intent intent) { // Relay intent to WeatherComplicationIntentService intent.SetClass(context, Java.Lang.Class.FromType(typeof(WeatherComplicationIntentService))); WeatherComplicationIntentService.EnqueueWork(context, intent); }