successes(with:)
Creates an array of results that contains the media items that match the user’s request.
Declaration
class func successes(with resolvedMediaItems: [INMediaItem]) -> [INMediaItemResolutionResult]Parameters
- resolvedMediaItems:
An array of Inmediaitem objects that resolve the user’s request. These values may be different than the one specified in the intent object.
Return Value
The array of INMediaItemResolutionResult objects.
Discussion
Use this method to create results when your app successfully identifies multiple media items to fulfill the same intent. After the first item in the list, any media item suggestions display as alternatives, but only on iOS. For cases where there are no potential alternatives, use success(with:).