location(inferred:)
Tells the system a widget is relevant at a person’s inferred location.
Declaration
static func location(inferred: RelevantContext.InferredLocation) -> RelevantContextParameters
- inferred:
Location information that the system infers from a person’s behavior. For example, the system could infer that a person is at work or at school.
Return Value
A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch.
Discussion
To indicate relevance at an inferred location, request a person’s permission to access their location with the When in Use or Always access level. For more information on creating a widget that can access location information, refer to Accessing location information in widgets.