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