Instance Property

customerInfoStream

Returns an AsyncStream of CustomerInfo changes, starting from the last known value.

Declaration

var customerInfoStream: AsyncStream<CustomerInfo> { get }

Example:


for await customerInfo in Purchases.shared.customerInfoStream {
  // this gets called whenever new CustomerInfo is available
  let entitlements = customerInfo.entitlements
  ...
}

See Also

Subscription Status