<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/AppIntentTimelineProvider/timeline(for:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit25AppIntentTimelineProviderP8timeline3for2inAA0E0Vy5EntryQzG0D0Qz_AA0eF7ContextVtYaF"
  },
  "title" : "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.

```
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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)