<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INUpcomingMediaManager/setPredictionMode(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INUpcomingMediaManager(im)setPredictionMode:forType:"
  },
  "title" : "setPredictionMode(_:for:)"
}
-->

# setPredictionMode(_:for:)

Suggests how Siri should predict media intent shortcuts.

```
func setPredictionMode(_ mode: INUpcomingMediaPredictionMode, for type: INMediaItemType)
```

## Parameters

`mode`

The prediction mode that Siri should use for your media intent shortcuts.

`type`

The media type for this prediction mode.

## Discussion

Apps such as podcast apps that want Siri to show only the suggested shortcuts—those set in the [`setSuggestedMediaIntents(_:)`](/documentation/Intents/INUpcomingMediaManager/setSuggestedMediaIntents(_:)) method and not media intents donated by your app for media the user has listened to or watched—should use the [`INUpcomingMediaPredictionMode.onlyPredictSuggestedIntents`](/documentation/Intents/INUpcomingMediaPredictionMode/onlyPredictSuggestedIntents) prediction mode. To tell Siri to show both donated and suggested media intent shortcuts associated with your app, use the [`INUpcomingMediaPredictionMode.default`](/documentation/Intents/INUpcomingMediaPredictionMode/default) mode or don’t set any prediction mode for the media type.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)