private void OnWeatherDataUpdate(int[] widgetsIds, PendingIntent pendingIntent) { if (widgetsIds == null || widgetsIds.Length == 0) { return; } try { var api = new ServiceApi(); api.UpdateWeatherData(this, widgetsIds, CancellationToken.None); api.AppWidgetUpdate(this, widgetsIds); } finally { pendingIntent?.Send(this, Result.Ok, null); } }
private void OnAppWidgetUpdate(int[] widgetsIds) { var api = new ServiceApi(); api.AppWidgetUpdate(this, widgetsIds); }