本文整理汇总了Java中org.solovyev.android.checkout.ActivityCheckout类的典型用法代码示例。如果您正苦于以下问题:Java ActivityCheckout类的具体用法?Java ActivityCheckout怎么用?Java ActivityCheckout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ActivityCheckout类属于org.solovyev.android.checkout包,在下文中一共展示了ActivityCheckout类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onOptionsItemSelected
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
final int itemId = item.getItemId();
if (itemId == R.id.action_info) {
Intent intent = new Intent(this, InfoActivity.class);
intent.putExtra(IssueActivity.MODAL_URL, getString(R.string.asset_url_info));
startActivity(intent);
return true;
} else if (itemId == R.id.action_settings) {
Intent settingsIntent = new Intent(this, SettingsActivity.class);
startActivity(settingsIntent);
return true;
} else if (itemId == R.id.action_refresh) {
swipeRefreshLayout.setRefreshing(true);
if(!issueCollection.isLoading()) {
issueCollection.reload();
}
return true;
} else if (itemId == R.id.action_subscribe) {
if(issueCollection.getSubscriptionSku() != null) {
final ActivityCheckout checkout = this.getCheckout();
checkout.whenReady(new Checkout.ListenerAdapter() {
@Override
public void onReady(@NonNull BillingRequests requests) {
requests.purchase(issueCollection.getSubscriptionSku(), null, checkout.getPurchaseFlow());
}
});
return true;
}else{
Toast.makeText(this, "Subscriptions are currently not available!", Toast.LENGTH_LONG).show();
return false;
}
} else {
return super.onContextItemSelected(item);
}
}
开发者ID:MagLoft,项目名称:magloft-android-app,代码行数:39,代码来源:ShelfActivity.java
示例2: getCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
@Nullable
public ActivityCheckout getCheckout() {
return mCheckout;
}
开发者ID:shaobin0604,项目名称:HeartbeatFixerForGCM,代码行数:5,代码来源:ActivityBase.java
示例3: getCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
@NonNull
public ActivityCheckout getCheckout() {
return checkout;
}
开发者ID:MagLoft,项目名称:magloft-android-app,代码行数:5,代码来源:ShelfActivity.java
示例4: getCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
@Nullable
ActivityCheckout getCheckout();
开发者ID:AChep,项目名称:AcDisplay,代码行数:3,代码来源:IActivityBase.java
示例5: getCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Nullable
@Override
public ActivityCheckout getCheckout() {
return mCheckout;
}
开发者ID:AChep,项目名称:AcDisplay,代码行数:9,代码来源:ActivityBaseInternal.java
示例6: getCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Nullable
@Override
public ActivityCheckout getCheckout() {
return mAbs.getCheckout();
}
开发者ID:AChep,项目名称:AcDisplay,代码行数:9,代码来源:ActivityBase.java
示例7: getShelfCheckout
import org.solovyev.android.checkout.ActivityCheckout; //导入依赖的package包/类
public ActivityCheckout getShelfCheckout() {
return shelfCheckout;
}
开发者ID:bakerframework,项目名称:baker-android-refactor,代码行数:4,代码来源:ShelfActivity.java
注:本文中的org.solovyev.android.checkout.ActivityCheckout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论