One Logo Pool Ball
AppIntents · IOS API REFERENCE

IntFromStringResolver

struct · iOS 16.0+ · SDK 27.1

struct IntFromStringResolver

A resolver that converts a string into an integer in the specified base and validates the result is within the parameter's inclusive range.

Members (4)

init · iOS 16.0+

init

TypeScript
static init(radix?: number): IntFromStringResolver
Swift declaration
init(radix: Int = 10)
get · iOS 16.0+

radix

TypeScript
get radix(): number
Swift declaration
var radix: Int
set · iOS 16.0+

radix

TypeScript
set radix(value: number)
Swift declaration
var radix: Int
method · iOS 16.0+

resolve

TypeScript
resolve(input: string, context: IntentParameterContext<number>): Promise<(number) | null>
Swift declaration
func resolve(from input: String, context: IntentParameterContext<Int>) async throws -> Int?

Converts the specified value into the expected data type. - Parameters: - input: The value to convert. - context: Contextual resolution information, including resolution source and information about the associated parameter if applicable. - Returns: The converted value, or `nil` if conversion fails.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →