---
title: "timeline(for:in:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/appintenttimelineprovider/timeline(for:in:)"
---

# timeline(for:in:)

Provides an array of timeline entries for the current time and, optionally, any future times to update a widget.

## Declaration

```swift
func timeline(for configuration: Self.Intent, in context: Self.Context) async -> Timeline<Self.Entry>
```

## Parameters

- `configuration`: The intent containing user-customized values.
- `context`: An object describing the context to show the widget in.

## Return Value

Return Value An array of timeline entries for the current time and, optionally, any future times to update a widget.

## Discussion

Discussion The configuration parameter provides user-customized values, as defined in your custom intent.

## See Also

### Generating timelines

- [placeholder(in:)](widgetkit/appintenttimelineprovider/placeholder(in:).md)
- [recommendations()](widgetkit/appintenttimelineprovider/recommendations().md)
- [relevance()](widgetkit/appintenttimelineprovider/relevance().md)
- [snapshot(for:in:)](widgetkit/appintenttimelineprovider/snapshot(for:in:).md)
- [AppIntentTimelineProvider.Context](widgetkit/appintenttimelineprovider/context.md)
- [Entry](widgetkit/appintenttimelineprovider/entry.md)
- [Intent](widgetkit/appintenttimelineprovider/intent.md)
