resolvePlaybackSpeed(for:with:)
Resolves the playback speed when playing media.
Declaration
optional func resolvePlaybackSpeed(for intent: INPlayMediaIntent, with completion: @escaping @Sendable (INPlayMediaPlaybackSpeedResolutionResult) -> Void)optional func resolvePlaybackSpeed(for intent: INPlayMediaIntent) async -> INPlayMediaPlaybackSpeedResolutionResultParameters
- intent:
The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- completion:
The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:
- resolutionResult
The object that contains the details of your proposed resolution.
Discussion
Implement this method to resolve the playback speed for playing media.