One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppSchema.MapsEnum

protocol · iOS 27.0+ · SDK 27.1

protocol MapsEnum : AppSchema.Kind

Identifies enum schemas in the maps domain.

Members (7)

get · iOS 27.0+

priceRange

Swift declaration
var priceRange: some AppSchemaEnum { get }

An enum schema for a price range parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `priceRange` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.priceRange)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `priceRange` schema: ```swift @AppEnum(schema: .maps.priceRange) enum MapsPriceRangeEnum: String { case <#MapsPriceRangeEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

transportType

Swift declaration
var transportType: some AppSchemaEnum { get }

An enum schema for a transport type parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `transportType` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.transportType)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `transportType` schema: ```swift @AppEnum(schema: .maps.transportType) enum MapsTransportTypeEnum: String { case <#MapsTransportTypeEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

operatingStatus

Swift declaration
var operatingStatus: some AppSchemaEnum { get }

An enum schema for an operating status parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `operatingStatus` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.operatingStatus)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `operatingStatus` schema: ```swift @AppEnum(schema: .maps.operatingStatus) enum MapsOperatingStatusEnum: String { case <#MapsOperatingStatusEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

ratingDescriptor

Swift declaration
var ratingDescriptor: some AppSchemaEnum { get }

An enum schema for a rating descriptor parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `ratingDescriptor` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.ratingDescriptor)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `ratingDescriptor` schema: ```swift @AppEnum(schema: .maps.ratingDescriptor) enum MapsRatingDescriptor: String { case percentage static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ .percentage: "Percentage" ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

navigationPreferences

Swift declaration
var navigationPreferences: some AppSchemaEnum { get }

An enum schema for a navigation preferences parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `navigationPreferences` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.navigationPreferences)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `navigationPreferences` schema: ```swift @AppEnum(schema: .maps.navigationPreferences) enum MapsNavigationPreferencesEnum: String { case <#MapsNavigationPreferencesEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

amenity

Swift declaration
var amenity: some AppSchemaEnum { get }

An enum schema for an amenity parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `amenity` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.amenity)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `amenity` schema: ```swift @AppEnum(schema: .maps.amenity) enum MapsAmenityTypeEnum: String { case <#MapsAmenityTypeEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 27.0+

incident

Swift declaration
var incident: some AppSchemaEnum { get }

An enum schema for an incident parameter. To make your app's parameter types available to Apple Intelligence, conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system. If your app's functionality aligns with the `maps` domain and a parameter type matches the `incident` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .maps.incident)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an app enum that conforms to the `incident` schema: ```swift @AppEnum(schema: .maps.incident) enum MapsIncidentEnum: String { case <#MapsIncidentEnum Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →