success(with:)
Creates a result that contains the media item that matches the user’s request.
Declaration
class func success(with resolvedMediaItem: INMediaItem) -> SelfParameters
- resolvedMediaItem:
The value that resolves the user’s request. This value may be different than the one specified in the intent object.
Return Value
A new INMediaItemResolutionResult object.
Discussion
Use this method to create a result when your app successfully identifies a single media item to fulfill the intent. For cases where there are potential alternatives, use successes(with:).