One Logo Pool Ball
Additional SDK Modules · IOS API REFERENCE

_RelevanceKit_MapKit

Explore _RelevanceKit_MapKit types and the APIs available through One's generated iOS bindings.

0 types

1 callable entries

0 skipped

100% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

No matching types.

Functions and constants

static · iOS 26.0+

location

TypeScript
static location(category: _MapKit_MKPointOfInterestCategory): (_RelevanceKit_RelevantContext) | null
Swift declaration
static func location(category: MKPointOfInterestCategory) -> RelevantContext?

Tells the system a widget is relevant close to points of interest of a specific category. To indicate relevance at points of interest of a specific category, import <doc://com.apple.documentation/documentation/mapkit> and 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 <doc://com.apple.documentation/documentation/widgetkit/accessing-location-information-in-widgets>. > 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, refer to <doc://com.apple.documentation/documentation/widgetkit/Widget-Suggestions-In-Smart-Stacks>. - Parameter category: The points-of-interest category; for example, restaurants, parks, or stores. - Returns: A contextual clue that the system uses to determine the relevance of a widget in the Smart Stack on Apple Watch, or `nil` if the category is not supported.

Skipped declarations

No declarations were skipped in this snapshot.