<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RelevanceKit",
  "identifier" : "/documentation/RelevanceKit/RelevantContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RelevanceKit"
    ],
    "preciseIdentifier" : "s:12RelevanceKit15RelevantContextV"
  },
  "title" : "RelevantContext"
}
-->

# RelevantContext

Contextual clues the system uses to show relevant widgets in the Smart Stack on watchOS.

```
struct RelevantContext
```

## Overview> Note: Smart Stacks are available in iOS, iPadOS, and watchOS. However, functionality provided by RelevanceKit API is only available
> in watchOS. Calling its API on other platforms doesn’t have any effect.
> For more information about widgets in Smart Stacks, refer to <doc://com.apple.documentation/documentation/WidgetKit/Widget-Suggestions-In-Smart-Stacks>.

## Topics

### Fitness clues

[`static func fitness(RelevantContext.FitnessCondition) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/fitness(_:))

Tells the system a widget is relevant because of a person’s fitness activity.

[`struct FitnessCondition`](/documentation/RelevanceKit/RelevantContext/FitnessCondition)

Values that represent a person’s fitness activity.

### Hardware clues

[`static func hardware(headphones: RelevantContext.HeadphonesCondition) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/hardware(headphones:))

Tells the system a widget is relevant when a person’s headphones are connected.

[`struct HeadphonesCondition`](/documentation/RelevanceKit/RelevantContext/HeadphonesCondition)

A structure that indicates whether a person’s headphones are connected.

### Location clues

[`static func location(category: MKPointOfInterestCategory) -> RelevantContext?`](/documentation/RelevanceKit/RelevantContext/location(category:))

Tells the system a widget is relevant close to points of interest of a specific category.

[`static func location(CLRegion) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/location(_:))

Tells the system a widget is relevant at a specific location.

[`static func location(inferred: RelevantContext.InferredLocation) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/location(inferred:))

Tells the system a widget is relevant at a person’s inferred location.

[`struct InferredLocation`](/documentation/RelevanceKit/RelevantContext/InferredLocation)

A structure with values for a person’s inferred home, work, school, and commute locations.

### Sleep clues

[`static func sleep(RelevantContext.SleepCondition) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/sleep(_:))

Tells the system a widget is relevant because of a person’s sleep schedule.

[`struct SleepCondition`](/documentation/RelevanceKit/RelevantContext/SleepCondition)

Values that represent a person’s typical bedtime or wakeup time.

### Time clues

[`static func date(Date) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/date(_:))

Tells the system a widget is relevant at a specific date.

[`static func date(Date, kind: RelevantContext.DateKind) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/date(_:kind:))

Tells the system a widget is relevant at a specific date and provides an additional contextual hint.

[`static func date(interval: DateInterval, kind: RelevantContext.DateKind) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/date(interval:kind:))

Tells the system a widget is relevant for a time interval and provides an additional contextual hint.

[`static func date(range: ClosedRange<Date>, kind: RelevantContext.DateKind) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/date(range:kind:))

Tells the system a widget is relevant for a known date range and provides an additional contextual hint.

[`struct DateKind`](/documentation/RelevanceKit/RelevantContext/DateKind)

Values the system uses as additional context for time-based relevance clues.

[`static func date(from: Date, to: Date) -> RelevantContext`](/documentation/RelevanceKit/RelevantContext/date(from:to:))

Tells the system a widget is relevant between two dates.



---

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)