launchBillingFlow | newBuilder

This reference document contains details, parameters, and usage of  launchBillingFlow, and  newBuilder methods.

launchBillingFlow

Usage

    int launchBillingFlow (Activity activity, BillingFlowParams params)

Details

The launchBillingFlow method initiates the billing flow for in-app purchases. now.gg Billing service will deliver the results using PurchasesUpdatedListener interface by utilizing setListener(PurchasesUpdatedListener)

Parameters Description Return
activity Billing flow will be launched using this activity reference  If the user already owns the item, the return value is 7. If the item is not available, the return value is 4. If the user cancels the purchase flow, the return value is 1.
params BillingFlowParams : Params specific to the launch billing flow request

 


newBuilder

Usage

    BillingClient.Builder newBuilder (Context context)

Details

The newBuilder method is used to construct a new BillingClient.Builder instance.

Parameters Description Returns
context Gets context to bind to the now.gg Billing Service BillingClient.Builder

 

×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg