Class

INPreferences

The preferences and authorization related to using SiriKit.

Declaration

@interface 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

+ requestSiriAuthorization:

Requests authorization to use Siri services.

+ siriAuthorizationStatus

Returns the current authorization status of your app.

INSiriAuthorizationStatus

Constants indicating the authorization status of your Intents extension.

Getting the Siri Language

+ siriLanguageCode

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

Relationships

Inherits From