Notification.CallStyle.ForOngoingCall(Person, PendingIntent) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为正在进行的呼叫创建 CallStyle。
[Android.Runtime.Register("forOngoingCall", "(Landroid/app/Person;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)]
public static Android.App.Notification.CallStyle ForOngoingCall(Android.App.Person person, Android.App.PendingIntent hangUpIntent);
[<Android.Runtime.Register("forOngoingCall", "(Landroid/app/Person;Landroid/app/PendingIntent;)Landroid/app/Notification$CallStyle;", "", ApiSince=31)>]
static member ForOngoingCall : Android.App.Person * Android.App.PendingIntent -> Android.App.Notification.CallStyle
参数
- person
- Person
人员:显示为呼叫另一端的人员。 该人员还需要具有与其关联的非空名称。 此值不能为 null。
- hangUpIntent
- PendingIntent
PendingIntent:当用户点击挂起操作时要发送的意向。 此值不能为 null。
返回
此 Android.App.Notification.CallStyle 实例允许链接调用。
- 特性
注解
为正在进行的呼叫创建 CallStyle。 此通知将具有挂起操作,最多允许两个自定义操作,并且将具有正在进行的调用的默认内容文本。
Android 参考。android.app.Notification.CallStyle.forOngoingCall
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。