/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/src/com/mapswithme/maps/purchase/BillingManager.java
64 строки
1 KB
Александр Зацепин
[android] Migrated code to Android X
22 окт 2019, 15:11
22 окт 2019, 15:11
f2dd324
Код
Авторство
О чём код?
package com.mapswithme.maps.purchase; import android.app.Activity; import androidx.annotation.NonNull; import java.util.List; /** * Manages a billing flow for the specific product. */ public interface BillingManager<T> { /** * Initializes the current billing manager. */ void initialize(@NonNull Activity context); /** * Destroys the billing manager. */ void destroy(); /** * Launches the billing flow for the product with the specified id. * Controls whole native part of billing process. * * @param productId identifier of the product which is going to be purchased. */ void launchBillingFlowForProduct(@NonNull String productId); /** * Indicates whether billing is supported for this device or not. */ boolean isBillingSupported(); /** * Queries existing purchases. */ void queryExistingPurchases(); /** * Queries product details for specified products. They will be delivered to the caller * through callback {@link T}. */ void queryProductDetails(@NonNull List<String> productIds); /** * Consumes the purchase with the specified token. Result of consumption will be delivered * through callback {@link T}. * * @param purchaseToken purchase token that is going to be consumed. */ void consumePurchase(@NonNull String purchaseToken); /** * Adds a billing callback. */ void addCallback(@NonNull T callback); /** * Removes the billing callback. */ void removeCallback(@NonNull T callback); }