什么是IntentSender的目的是什么? [英] What is the purpose of IntentSender?

查看:1989
本文介绍了什么是IntentSender的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么是 IntentSender 类我们的应用程序?我们如何使用它在我们的应用程序?

I want to known what is the purpose of the IntentSender class for our application? How do we use it in our application?

有没有什么很好的例子,除了<一个href=\"http://justanapplication.word$p$pss.com/2011/02/21/the-android-intent-based-apis-part-seven-intentsenders-and-pendingintents/\"相对=nofollow> Android的意图基于API的:第七部分 - IntentSenders而PendingIntents

Are there any good examples, apart from The Android Intent Based APIs: Part Seven – IntentSenders And PendingIntents?

推荐答案

有关的 IntentSender 明确规定:

The official Android developer documentation for IntentSender clearly states:

这个类的实例不能直接做,而是从现有的的PendingIntent PendingIntent.getIntentSender()

Instances of this class can not be made directly, but rather must be created from an existing PendingIntent with PendingIntent.getIntentSender().

所以,你会(应该)没有看到这个类直接使用code样品或教程英寸

So, you would(should) not see this class being used directly in a code sample or tutorial.

对于一个的PendingIntent ,它基本上是你给到另一个应用程序,它允许应用程序使用您的应用程序的权限执行一段特定应用的$ C的象征$ C。

As for a PendingIntent, it's basically a token that you give to another application which allows that application to use your app's permissions to execute a specific piece of your app's code.

下面是一个例子的一个的PendingIntent 在一个类中使用。

Here's an example of a PendingIntent used in a class.

这篇关于什么是IntentSender的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆