Class

INLengthResolutionResult

A resolution result for a length associated with an intent.

Declaration

class INLengthResolutionResult : INIntentResolutionResult

Overview

An INLengthResolutionResult object is what you return when resolving length related parameters of an intent object. Use the creation method that best reflects your ability to successfully resolve the parameter.

For additional resolution options, see INIntentResolutionResult.

Topics

Creating a Resolution Result Objects

class func success(with: Measurement<UnitLength>) -> Self

Creates an object whose resolution involves the successful matching of the specified parameter.

class func confirmationRequired(with: Measurement<UnitLength>?) -> Self

Creates an object whose resolution requires that the user must confirm the value before proceeding.

class func disambiguation(with: [Measurement<UnitLength>]) -> Self

Creates an object whose resolution requires the user to select from among the specified objects.

Relationships

Conforms To

See Also

Measurement

class INSpeedResolutionResult

A resolution result for a speed associated with an intent.

class INVolumeResolutionResult

A resolution result for a volume associated with an intent.

class INEnergyResolutionResult

A resolution result for an energy parameter associated with an intent.

class INMassResolutionResult

A resolution result for a mass associated with an intent.