All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.badlogic.gdx.pay.android.googleplay.billing.GoogleInAppBillingService Maven / Gradle / Ivy

package com.badlogic.gdx.pay.android.googleplay.billing;

import com.badlogic.gdx.pay.Information;
import com.badlogic.gdx.pay.PurchaseObserver;
import com.badlogic.gdx.pay.Transaction;
import com.badlogic.gdx.pay.GdxPayException;

import java.util.List;
import java.util.Map;

public interface GoogleInAppBillingService {

    void requestConnect(ConnectionListener callback);

    Map getProductsDetails(List productIds, String productType);

    void startPurchaseRequest(String productId, String type, PurchaseRequestCallback listener);
    void consumePurchase(Transaction transaction, PurchaseObserver observer);

    void cancelTestPurchases();

    void disconnect();

    boolean isListeningForConnections();

    List getPurchases();

    void dispose();

    interface ConnectionListener {
        void connected();

        void disconnected(GdxPayException exception);
    }

    interface PurchaseRequestCallback {
        void purchaseSuccess(Transaction transaction);

        void purchaseError(GdxPayException exception);

        void purchaseCanceled();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy