One Logo Pool Ball
AppIntents · IOS API REFERENCE

StringFromDoubleResolver

struct · iOS 16.0+ · SDK 27.1

struct StringFromDoubleResolver

A resolver that converts a double into a string.

Members (1)

method · iOS 16.0+

resolve

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

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 →