RemoteViews.RemoteResponse.FromPendingIntent(PendingIntent) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个响应,该响应将挂起的意向作为响应的一部分发送。 意向的源边界(Intent.getSourceBounds)将设置为屏幕空间中目标视图的边界。 请注意,在启动意向之前,与 mPendingIntent 关联的任何活动选项都可能会被重写。
[Android.Runtime.Register("fromPendingIntent", "(Landroid/app/PendingIntent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)]
public static Android.Widget.RemoteViews.RemoteResponse FromPendingIntent(Android.App.PendingIntent pendingIntent);
[<Android.Runtime.Register("fromPendingIntent", "(Landroid/app/PendingIntent;)Landroid/widget/RemoteViews$RemoteResponse;", "", ApiSince=29)>]
static member FromPendingIntent : Android.App.PendingIntent -> Android.Widget.RemoteViews.RemoteResponse
参数
- pendingIntent
- PendingIntent
PendingIntent:作为响应的一部分发送的 PendingIntent。 此值不能为 null。
返回
此值不能为 null。
- 属性
注解
Java文档RemoteViews.RemoteResponse。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。