Type Method

successes(with:)

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

Declaration

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

Parameters

resolvedMediaItems

The value that resolves the requested parameter of the intent. This value may be different than the one specified in the intent object.

Return Value

Discussion

Use this method to create a result object when you’re able to add a media item to the specified destination.

See Also

Creating a Resolution Result Object

class func success(with: INMediaItem) -> Self

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.