init
TypeScriptstatic init(roundingRule?: SDKHandle): IntFromDoubleResolverSwift declarationinit(roundingRule: FloatingPointRoundingRule = .towardZero)struct · iOS 16.0+ · SDK 27.1
struct IntFromDoubleResolverA resolver that converts a double into an integer using the specified rounding rule and validates the result is within the parameter's inclusive range.
static init(roundingRule?: SDKHandle): IntFromDoubleResolverSwift declarationinit(roundingRule: FloatingPointRoundingRule = .towardZero)get roundingRule(): SDKHandleSwift declarationvar roundingRule: FloatingPointRoundingRuleset roundingRule(value: SDKHandle)Swift declarationvar roundingRule: FloatingPointRoundingRuleresolve(input: number, context: IntentParameterContext<number>): Promise<(number) | null>Swift declarationfunc resolve(from input: Double, 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.
No declarations were skipped in this snapshot.