org.solovyev.android.checkout.Checkout Java Examples
The following examples show how to use
org.solovyev.android.checkout.Checkout.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DonateActivity.java From screenrecorder with GNU Affero General Public License v3.0 | 5 votes |
private void consumePurchase(final Purchase purchase){ mCheckout.whenReady(new Checkout.EmptyListener() { @Override public void onReady(@Nonnull BillingRequests requests) { requests.consume(purchase.token, new ConsumeListener()); } }); }
Example #2
Source File: DonateDialogFragment.java From HeartbeatFixerForGCM with Apache License 2.0 | 5 votes |
private void purchase(@NonNull final Sku sku) { if (DEBUG) Log.d(TAG, "Purchasing " + sku.toString() + "..."); mCheckout.whenReady(new Checkout.ListenerAdapter() { @Override public void onReady(@NonNull BillingRequests requests) { requests.purchase(sku, null, mCheckout.getPurchaseFlow()); } }); }
Example #3
Source File: DonateActivity.java From screenrecorder with GNU Affero General Public License v3.0 | 5 votes |
private void makePurchase(final String sku){ mCheckout.whenReady(new Checkout.EmptyListener() { @Override public void onReady(BillingRequests requests) { requests.purchase(ProductTypes.IN_APP, sku, null, mCheckout.getPurchaseFlow()); } }); }
Example #4
Source File: CheckoutInternal.java From HeadsUp with GNU General Public License v2.0 | 5 votes |
@Nullable @Override public Inventory getFallbackInventory(@NonNull Checkout checkout, @NonNull Executor onLoadExecutor) { if (RobotmediaDatabase.exists(mBilling.getContext())) { return new RobotmediaInventory(checkout, onLoadExecutor); } else { return null; } }
Example #5
Source File: CheckoutInternal.java From HeartbeatFixerForGCM with Apache License 2.0 | 5 votes |
@Nullable @Override public Inventory getFallbackInventory(@NonNull Checkout checkout, @NonNull Executor onLoadExecutor) { if (RobotmediaDatabase.exists(mBilling.getContext())) { return new RobotmediaInventory(checkout, onLoadExecutor); } else { return null; } }
Example #6
Source File: DonateDialog.java From AcDisplay with GNU General Public License v2.0 | 5 votes |
private void purchase(@NonNull final Sku sku) { if (DEBUG) Log.d(TAG, "Purchasing " + sku.toString() + "..."); mCheckout.whenReady(new Checkout.ListenerAdapter() { @Override public void onReady(@NonNull BillingRequests requests) { requests.purchase(sku, null, mCheckout.getPurchaseFlow()); } }); }
Example #7
Source File: ActivityBase.java From HeadsUp with GNU General Public License v2.0 | 5 votes |
/** * {@inheritDoc} */ @Override protected void onCreate(Bundle savedInstanceState) { if (mCheckoutRequest) { App.getCheckoutInternal().requestConnect(); mCheckout = Checkout.forActivity(this, App.getCheckout()); } mPowerSaveDetector = PowerSaveDetector.newInstance(this); super.onCreate(savedInstanceState); }
Example #8
Source File: DonateDialog.java From HeadsUp with GNU General Public License v2.0 | 5 votes |
private void purchase(@NonNull final Sku sku) { if (DEBUG) Log.d(TAG, "Purchasing " + sku.toString() + "..."); mCheckout.whenReady(new Checkout.ListenerAdapter() { @Override public void onReady(@NonNull BillingRequests requests) { requests.purchase(sku, null, mCheckout.getPurchaseFlow()); } }); }
Example #9
Source File: CheckoutInternal.java From AcDisplay with GNU General Public License v2.0 | 5 votes |
@Nullable @Override public Inventory getFallbackInventory(@NonNull Checkout checkout, @NonNull Executor onLoadExecutor) { if (RobotmediaDatabase.exists(mBilling.getContext())) { return new RobotmediaInventory(checkout, onLoadExecutor); } else { return null; } }
Example #10
Source File: App.java From HeadsUp with GNU General Public License v2.0 | 4 votes |
@NonNull public static Checkout getCheckout() { return instance.mCheckoutInternal.getCheckout(); }
Example #11
Source File: CheckoutInternal.java From HeadsUp with GNU General Public License v2.0 | 4 votes |
@NonNull public Checkout getCheckout() { return mCheckout; }
Example #12
Source File: CheckoutInternal.java From HeadsUp with GNU General Public License v2.0 | 4 votes |
public CheckoutInternal(@NonNull Context context, @NonNull Products products) { mBilling = new Billing(context, new Configuration()); mCheckout = Checkout.forApplication(mBilling, products); }
Example #13
Source File: CheckoutInternal.java From AcDisplay with GNU General Public License v2.0 | 4 votes |
@NonNull public Checkout getCheckout() { return mCheckout; }
Example #14
Source File: CheckoutInternal.java From AcDisplay with GNU General Public License v2.0 | 4 votes |
public CheckoutInternal(@NonNull Context context, @NonNull Products products) { mBilling = new Billing(context, new Configuration()); mCheckout = Checkout.forApplication(mBilling, products); }
Example #15
Source File: AppHeap.java From AcDisplay with GNU General Public License v2.0 | 4 votes |
@NonNull public static Checkout getCheckout() { return getCheckoutInternal().getCheckout(); }
Example #16
Source File: ActivityBaseInternal.java From AcDisplay with GNU General Public License v2.0 | 4 votes |
void onCreate(Activity activity, Bundle savedInstanceState) { if (mCheckoutRequest) mCheckout = Checkout.forActivity(activity, AppHeap.getCheckout()); mPowerSaveDetector = PowerSaveDetector.newInstance(activity); mActivity = activity; mCreated = true; }
Example #17
Source File: CheckoutInternal.java From HeartbeatFixerForGCM with Apache License 2.0 | 4 votes |
@NonNull public Checkout getCheckout() { return mCheckout; }
Example #18
Source File: CheckoutInternal.java From HeartbeatFixerForGCM with Apache License 2.0 | 4 votes |
public CheckoutInternal(@NonNull Context context, @NonNull Products products) { mBilling = new Billing(context, new Configuration()); mCheckout = Checkout.forApplication(mBilling, products); }
Example #19
Source File: ActivityBase.java From HeartbeatFixerForGCM with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override protected void onCreate(Bundle savedInstanceState) { if (mCheckoutRequest) mCheckout = Checkout.forActivity(this, getCheckoutInternal().getCheckout()); super.onCreate(savedInstanceState); }