Swift Objective-C Kotlin Java React Native
Copy Purchasely. productController ( for : "my_product_id" ,
with : "my_presentation_id"
completion : { (result, plan) in
} )
Copy [Purchasely productControllerFor:@"my_product_id"
with:@"my_presentation_id"
completion:^(enum PLYProductViewControllerResult result, PLYPlan * _Nullable plan) {
}];
Copy Purchasely. productFragment (
"productVendorId" ,
"presentationVendorId" ) { result, plan ->
// result is either Purchase, Cancelled or Restored
}
Copy Purchasely . productFragment ( "productVendorId" , "presentationVendorId" ,
(result , plan) -> {
// result is either Purchase, Cancelled or Restored
}
);
Copy try {
await Purchasely .presentProductWithIdentifier ( 'productVendorId' , 'presentationVendorId' );
} catch (e) {
console .log (e);
}
Swift Objective-C Kotlin Java React Native
Copy Purchasely. presentationController ( with : "presentationVendorId"
completion : { (result, plan) in
} )
Copy Purchasely productControllerWith:@"my_presentation_id"
completion:^(enum PLYProductViewControllerResult result, PLYPlan * _Nullable plan) {
}];
Copy Purchasely. presentationFragment ( "presentationVendorId" ) { result, plan ->
//result is either Purchase, Cancelled or Restored
}
Copy Purchasely . presentationFragment ( "presentationVendorId" , (result , plan) -> {
//result is either Purchase, Cancelled or Restored
})
Copy try {
await Purchasely .presentPresentationWithIdentifier ( 'presentationVendorId' );
} catch (e) {
console .log (e);
}
Copy myapp://ply/products/PRODUCT_VENDOR_ID/PRESENTATION_VENDOR_ID
Copy myapp://ply/presentations/PRESENTATION_VENDOR_ID