Class

INPreferences

The preferences and authorization related to using SiriKit.

Declaration

class INPreferences : NSObject

Overview

Use the class methods of INPreferences to perform tasks related to the use of SiriKit. An iOS app must request authorization to use SiriKit before Siri or Maps are allowed to call on its Intents extension to handle intents. To request authorization, call the requestSiriAuthorization(_:) method at some point during your app’s execution. The first time you call this method, the user is prompted to grant or deny authorization for your app. The user can change the authorization settings for your app later in the system settings. You can get your app’s current authorization status using the siriAuthorizationStatus() method.

Topics

Managing the App’s Authorization

class func siriAuthorizationStatus() -> INSiriAuthorizationStatus

Returns the current authorization status of your app.

enum INSiriAuthorizationStatus

Constants indicating the authorization status of your Intents extension.

Getting the Siri Language

class func siriLanguageCode() -> String

Returns the language that Siri uses to communicate with the user.

Relationships

Inherits From

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software