• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Products类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.solovyev.android.checkout.Products的典型用法代码示例。如果您正苦于以下问题:Java Products类的具体用法?Java Products怎么用?Java Products使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

Products类属于org.solovyev.android.checkout包,在下文中一共展示了Products类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

点赞 3

import org.solovyev.android.checkout.Products; //导入依赖的package包/类
/**
 * Must be called at {@link android.app.Application#onCreate()}
 */
public void init(@NonNull Application application, @NonNull IConfiguration configuration) {
    mRefWatcher = LeakCanary.install(application);

    mCheckoutInternal = new CheckoutInternal(application, Products.create()
            .add(ProductTypes.IN_APP, configuration.getBilling().getProducts())
            .add(ProductTypes.SUBSCRIPTION, Collections.singletonList("")));
    mConfiguration = configuration;
    mApplication = application;

    // Setup log
    /*
    if (DEBUG) {
        Timber.plant(new Timber.DebugTree());
    } else {
        Timber.plant(new ReleaseTree());
    }
    */
    Timber.plant(new ReleaseTree());

    TypefaceHelper.initialize(application);
    RuntimePermissions.getInstance().load(application);
}
 

开发者ID:AChep,
项目名称:AcDisplay,
代码行数:26,
代码来源:AppHeap.java

示例2: onCreate

点赞 2

import org.solovyev.android.checkout.Products; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
                    .setDefaultFontPath("fonts/GothamRnd-Book.otf")
                    .setFontAttrId(R.attr.fontPath)
                    .build());
    mCheckoutInternal = new CheckoutInternal(this, Products.create().add(ProductTypes.IN_APP,
            IabProducts.PRODUCT_LIST));
    Once.initialise(this);
}
 

开发者ID:shaobin0604,
项目名称:HeartbeatFixerForGCM,
代码行数:12,
代码来源:HeartbeatFixerForGcmApp.java

示例3: getCheckout

点赞 2

import org.solovyev.android.checkout.Products; //导入依赖的package包/类
public Checkout getCheckout() {
    if(checkout == null && !Configuration.isStandaloneMode()) {
        checkout = Checkout.forApplication(billing, Products.create().add(IN_APP, ((RemoteIssueCollection) issueCollection).getIssueProductIds()).add(SUBSCRIPTION, Configuration.getSubscriptionProductIds()));
        checkout.start();
    }
    return checkout;
}
 

开发者ID:bakerframework,
项目名称:baker-android-refactor,
代码行数:8,
代码来源:BakerApplication.java

示例4: CheckoutInternal

点赞 2

import org.solovyev.android.checkout.Products; //导入依赖的package包/类
public CheckoutInternal(@NonNull Context context, @NonNull Products products) {
    mBilling = new Billing(context, new Configuration());
    mCheckout = Checkout.forApplication(mBilling, products);
}
 

开发者ID:shaobin0604,
项目名称:HeartbeatFixerForGCM,
代码行数:5,
代码来源:CheckoutInternal.java

示例5: initializeCheckout

点赞 2

import org.solovyev.android.checkout.Products; //导入依赖的package包/类
public void initializeCheckout(List<String> productIds) {
    List<String> subscriptionIds = new ArrayList<>();
    subscriptionIds.add(getString(R.string.google_play_subscription_id));
    checkout = Checkout.forApplication(billing, Products.create().add(IN_APP, productIds).add(SUBSCRIPTION, subscriptionIds));
}
 

开发者ID:MagLoft,
项目名称:magloft-android-app,
代码行数:6,
代码来源:BakerApplication.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)