One Logo Pool Ball
AppIntents · IOS API REFERENCE

IntentCurrencyAmount

struct · iOS 16.0+ · SDK 27.1

struct IntentCurrencyAmount

An amount of money to transfer during a financial transaction.

Members (6)

get · iOS 16.0+

currencyCode

TypeScript
get currencyCode(): string
Swift declaration
let currencyCode: String

The ISO 4217 currency code that applies to the monetary amount.

get · iOS 16.0+

displayRepresentation

TypeScript
get displayRepresentation(): DisplayRepresentation
Swift declaration
var displayRepresentation: DisplayRepresentation { get }

The visual elements to display when presenting an instance of the type.

get · iOS 16.0+

typeDisplayRepresentation

TypeScript
static get typeDisplayRepresentation(): TypeDisplayRepresentation
Swift declaration
static var typeDisplayRepresentation: TypeDisplayRepresentation { get }

A short, localized, human-readable name for the type.

get · iOS 16.0+

defaultResolverSpecification

TypeScript
static get defaultResolverSpecification(): EmptyResolverSpecification<IntentCurrencyAmount>
Swift declaration
static var defaultResolverSpecification: EmptyResolverSpecification<IntentCurrencyAmount> { get }
init · iOS 16.0+

init

TypeScript
static init(amount: _Foundation_Decimal, currencyCode: string): IntentCurrencyAmount
Swift declaration
init(amount: Decimal, currencyCode: String)

Creates a IntentCurrencyAmount from a monetary amount and a currency code. - Parameters: - amount: monetary amount - currencyCode: ISO 4217 currency code that applies to the monetary amount.

get · iOS 16.0+

amount

TypeScript
get amount(): _Foundation_Decimal
Swift declaration
let amount: Decimal

The monetary amount.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →