Class

INMediaItemResolutionResult

A resolution result for media item types.

Declaration

class INMediaItemResolutionResult : INIntentResolutionResult

Overview

You return an INMediaItemResolutionResult object when resolving parameters containing an INMediaItem value. Use the creation method that best reflects your ability to resolve the parameter successfully.

For additional resolution operators, see INIntentResolutionResult.

Topics

Creating a Resolution Result Object

class func success(with: INMediaItem) -> Self

Creates an object whose resolution involves successfully matching the specified parameter.

class func successes(with: [INMediaItem]) -> [INMediaItemResolutionResult]

Creates an object whose resolution involves successfully matching the specified parameter.

class func confirmationRequired(with: INMediaItem?) -> Self

Creates an object whose resolution requires the user to confirm the value before proceeding.

class func disambiguation(with: [INMediaItem]) -> Self

Creates an object whose resolution requires the user to select from among the specified objects.

Relationships

Conforms To

See Also

Resolution Results

class INAddMediaMediaDestinationResolutionResult

A resolution result for the types of destinations when adding media.

class INAddMediaMediaItemResolutionResult

A resolution result for the media item to add.

class INMediaDestinationResolutionResult

A resolution result for the media destination types.

class INMediaAffinityTypeResolutionResult

A resolution result for the user’s affinity for a media item.

class INPlayMediaMediaItemResolutionResult

A resolution result for the media item to play.

class INPlayMediaPlaybackSpeedResolutionResult

A resolution result that determines the playback speed of a media item.

class INPlaybackRepeatModeResolutionResult

A resolution result for the playback repeat modes of a media item.

class INPlaybackQueueLocationResolutionResult

A resolution result for the requested playback queue location.

class INSearchForMediaMediaItemResolutionResult

A resolution result for the media item for which to search.

class INUpdateMediaAffinityMediaItemResolutionResult

A resolution result for updating the user’s affinity for a media item.