---
title: "resolvePresetNumber(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetradiostationintenthandling/resolvepresetnumber(for:with:)"
---

# resolvePresetNumber(for:with:)

Resolves the preset number used to select the radio station.

## Declaration

```swift
optional func resolvePresetNumber(for intent: INSetRadioStationIntent, with completion: @escaping @Sendable (INIntegerResolutionResult) -> Void)
```

```swift
optional func resolvePresetNumber(for intent: INSetRadioStationIntent) async -> INIntegerResolutionResult
```

## Parameters

- `intent`: The intent object containing 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 your response. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the preset number for the radio station. Use this method to set the radio to the station associated with the preset number on the raido.

## See Also

### Resolving the Intent Parameters

- [resolveRadioType(for:with:)](intents/insetradiostationintenthandling/resolveradiotype(for:with:).md)
- [resolveFrequency(for:with:)](intents/insetradiostationintenthandling/resolvefrequency(for:with:).md)
- [resolveStationName(for:with:)](intents/insetradiostationintenthandling/resolvestationname(for:with:).md)
- [resolveChannel(for:with:)](intents/insetradiostationintenthandling/resolvechannel(for:with:).md)
