Show / Hide Table of Contents

Class AN_BillingClient.Builder

Builder to configure and create a AN_BillingClient instance.

Inheritance
System.Object
AN_BillingClient.Builder
Namespace: SA.Android.Vending.BillingClient
Assembly: cs.temp.dll.dll
Syntax
public class Builder : AN_LinkedObject

Methods

Build()

Declaration
public AN_BillingClient Build()
Returns
Type Description
AN_BillingClient

EnablePendingPurchases()

Enables pending purchase support.

This method is required to be called to acknowledge your application has been updated to support purchases that are pending. Pending purchases are not automatically enabled since your application will require updates to ensure entitlement is not granted before payment has been secured. For more information on how to handle pending transactions see https://developer.android.com/google/play/billing/billing_library_overview If this method is not called, BillingClient instance creation fails.

Declaration
public AN_BillingClient.Builder EnablePendingPurchases()
Returns
Type Description
AN_BillingClient.Builder

SetChildDirected(AN_BillingClient.ChildDirected)

Declaration
public AN_BillingClient.Builder SetChildDirected(AN_BillingClient.ChildDirected childDirected)
Parameters
Type Name Description
AN_BillingClient.ChildDirected childDirected
Returns
Type Description
AN_BillingClient.Builder

SetListener(AN_iPurchasesUpdatedListener)

Specify a valid listener for onPurchasesUpdated event.

Declaration
public AN_BillingClient.Builder SetListener(AN_iPurchasesUpdatedListener listener)
Parameters
Type Name Description
AN_iPurchasesUpdatedListener listener

Your listener for app initiated and Play Store initiated purchases.

Returns
Type Description
AN_BillingClient.Builder

SetUnderAgeOfConsent(AN_BillingClient.UnderAgeOfConsent)

Declaration
public AN_BillingClient.Builder SetUnderAgeOfConsent(AN_BillingClient.UnderAgeOfConsent underAgeOfConsent)
Parameters
Type Name Description
AN_BillingClient.UnderAgeOfConsent underAgeOfConsent
Returns
Type Description
AN_BillingClient.Builder
In This Article
Back to top Generated by DocFX