---
title: "getTimeline(for:in:completion:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/intenttimelineprovider/gettimeline(for:in:completion:)"
---

# getTimeline(for:in:completion:)

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

## Declaration

```swift
@preconcurrency func getTimeline(for configuration: Self.Intent, in context: Self.Context, completion: @escaping @Sendable (Timeline<Self.Entry>) -> Void)
```

## Parameters

- `configuration`: The intent containing user-customized values.
- `context`: An object describing the context to show the widget in.
- `completion`: The completion handler to call after you create the timeline.

## Discussion

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

## See Also

### Generating Timelines

- [getSnapshot(for:in:completion:)](widgetkit/intenttimelineprovider/getsnapshot(for:in:completion:).md)
- [placeholder(in:)](widgetkit/intenttimelineprovider/placeholder(in:).md)
- [Entry](widgetkit/intenttimelineprovider/entry.md)
- [Intent](widgetkit/intenttimelineprovider/intent.md)
- [recommendations()](widgetkit/intenttimelineprovider/recommendations().md)
- [IntentTimelineProvider.Context](widgetkit/intenttimelineprovider/context.md)
