hardware(headphones:)
Tells the system a widget is relevant when a person’s headphones are connected.
Declaration
static func hardware(headphones: RelevantContext.HeadphonesCondition) -> RelevantContextParameters
- headphones:
A value that indicates connected headphones.
Return Value
A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch.
Discussion
Setting a RelevantContext.HeadphonesCondition to signal relevance to the system doesn’t give you access to fitness activity and information. If contextual fitness information isn’t available to the system, fitness clues to signal relevance don’t have an effect.