更新时间:2021-07-13 21:46:17
有关的 IntentSender
明确规定:
The official Android developer documentation for IntentSender
clearly states:
这个类的实例不能直接做,而是从现有的的PendingIntent
与 PendingIntent.getIntentSender()$,而必须创建C $ C>。
Instances of this class can not be made directly, but rather must be created from an existing
PendingIntent
withPendingIntent.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.