Protocol

INSetRadioStationIntentHandling

The handler interface for changing a radio station.

Overview

Use the methods of the INSetRadioStationIntentHandling protocol to resolve, confirm, and handle requests to change radio stations from your app. Your extension should be able to change the radio station based on the provided information. For example, automotive vendors should be able to use the information to update the settings of a vehicle’s entertainment system.

Siri delivers an INSetRadioStationIntent object to your handler when the user asks to change the current radio station. The provided intent object contains information that you use to determine the new station.

Topics

Handling the Intent

func handle(intent: INSetRadioStationIntent, completion: (INSetRadioStationIntentResponse) -> Void)

Called when it is time for you to change the radio station.

Required.

Confirming the Response

func confirm(intent: INSetRadioStationIntent, completion: (INSetRadioStationIntentResponse) -> Void)

Called when it is time for you to confirm whether you can change the radio station.

Resolving Details of the Intent

func resolveRadioType(for: INSetRadioStationIntent, with: (INRadioTypeResolutionResult) -> Void)

Called when it is time for you to resolve the requested seat position.

func resolveFrequency(for: INSetRadioStationIntent, with: (INDoubleResolutionResult) -> Void)

Called when it is time for you to resolve the radio station frequency.

func resolveStationName(for: INSetRadioStationIntent, with: (INStringResolutionResult) -> Void)

Called when it is time for you to resolve the name of the radio station.

func resolveChannel(for: INSetRadioStationIntent, with: (INStringResolutionResult) -> Void)

Called when it is time for you to resolve the channel number for the radio station.

func resolvePresetNumber(for: INSetRadioStationIntent, with: (INIntegerResolutionResult) -> Void)

Called when it is time for you to resolve the preset number used to select the radio station.

Relationships

Inherits From

See Also

Set Radio Station

class INSetRadioStationIntent

A request to change the current radio station.

class INSetRadioStationIntentResponse

Your app’s response to a set radio station intent.