Skip to content

Commit 65cce2f

Browse files
committed
fix readme
1 parent 5465d74 commit 65cce2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn bevy_system(mut iap: BevyIosIap) {
8787

8888
// request product details, product IDs have to be explicitly provided
8989
iap.products(vec!["com.rustunit.zoolitaire.levelunlock".into()])
90-
.on_response(|trigger: Trigger<Products>| match &trigger.event().0 {
90+
.on_response(|trigger: On<Products>| match &trigger.event().0 {
9191
IosIapProductsResponse::Done(products) => {
9292
info!("products loaded: {}", products.len());
9393

@@ -100,7 +100,7 @@ fn bevy_system(mut iap: BevyIosIap) {
100100

101101
// trigger a product purchase for a specific product ID
102102
iap.purchase("com.rustunit.zoolitaire.levelunlock".into())
103-
.on_response(|trigger: Trigger<Purchase>|{
103+
.on_response(|trigger: On<Purchase>|{
104104
match &trigger.event().0 {
105105
IosIapPurchaseResponse::Success(t) => {
106106
info!("just purchased: '{}' {}", t.product_id, t.id);
@@ -113,7 +113,7 @@ fn bevy_system(mut iap: BevyIosIap) {
113113

114114
// request to restore active subscriptions and non-consumables
115115
iap.current_entitlements()
116-
.on_response(|trigger: Trigger<CurrentEntitlements>|{
116+
.on_response(|trigger: On<CurrentEntitlements>|{
117117
info!("current entitlements: {}", trigger.event());
118118
});
119119
}

0 commit comments

Comments
 (0)