Crate bevy_ios_iap

Source

Structs§

AllTransactions
BevyIosIap
BevyIosIapRequestBuilder
CurrentEntitlements
FinishTransaction
IosIapCurrency
Used in IosIapTransaction
IosIapPlugin
Bevy plugin to integrate access to iOS StoreKit2
IosIapProduct
Expected event data in response to get_products method call.
IosIapStorefront
The App Store storefront associated with the transaction.
IosIapSubscriptionInfo
Expected event data in response to get_products method call.
IosIapSubscriptionPeriod
Used in IosIapSubscriptionInfo
IosIapSubscriptionStatus
Used in IosIapSubscriptionInfo
IosIapTransaction
Representation of a Transaction. Mirrors the Transcation type in Apple’s StoreKit2 closely. See official docs for more details on the individual fields.
Products
Purchase

Enums§

IosIapEnvironment
The server environment that generates and signs the transaction.
IosIapEvents
Events for pro-active communication from native iOS (Swift) side to Rust/Bevy that are not a direct response to a request.
IosIapProductType
The type of the in-app purchase.
IosIapProductsResponse
Expected event data in response to [get_products] method call.
IosIapPurchaseError
Used in IosIapPurchaseResponse
IosIapPurchaseResponse
Expected event data in response to [purchase] method call.
IosIapResponse
All possible responses for communication from the native iOS (Swift) side to Rust/Bevy as a reaction to a method call / request.
IosIapRevocationReason
Used in IosIapTransaction
IosIapStoreKitError
Used in IosIapPurchaseResponse
IosIapSubscriptionPeriodUnit
Used in IosIapSubscriptionPeriod
IosIapSubscriptionRenewalState
Used in IosIapSubscriptionStatus
IosIapTransactionFinishResponse
Expected event data in response to [finish_transaction] method call.
IosIapTransactionReason
A cause of a purchase transaction, indicating whether it’s a customer’s purchase or an auto-renewable subscription renewal that the system initiates.
IosIapTransactionResponse
Expected event data in response to [current_entitlements] or [all_transactions] method call.

Functions§

all_transactions
Quoted from Apple’s docs: “A sequence that emits all the transactions for the user for your app.”
current_entitlements
Quoted from Apple docs: “A sequence of the latest transactions that entitle a user to in-app purchases and subscriptions.”
finish_transaction
Finishes a Transaction. Identify the Transaction with an ID. Apple expects us to call this only after the user got the Product granted so we can safely consider this purchase finished. Until the transaction is finished iOS will keep triggering it as soon as we register the TransactionObserver via the init call. See crate::init.
get_products
Fetch Product Details. A list of Product IDs has to be provided. Expected to be confirmed with event: [IosIapEvents::Products][crate::IosIapEvents::Products]
init
Registers for any updates on Transactions. Any such update will trigger: IosIapEvents::TransactionUpdate
purchase
Trigger a purchase flow. The product ID has to be provided Expected to be confirmed with event: [IosIapEvents::Purchase][crate::IosIapEvents::Purchase]