語言

Notification.CallStyle.ForScreeningCall 方法

定義

為正在篩選的通話建立一個通話風格。

[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

Person:顯示為來電者的人。 該人還需要有一個非空的名字。 這個值不可能為零值。

hangUpIntent
PendingIntent

PendingIntent:使用者點擊掛斷動作時要發送的意圖。 這個值不可能為零值。

answerIntent
PendingIntent

PendingIntent:當使用者點擊回答動作時,要發送的意圖。 這個值不可能為零值。

傳回

這個 Android.App.Notification.CallStyle 實例,允許通話串接。

屬性

備註

為正在篩選的通話建立一個通話風格。 此通知會有掛斷和接聽動作,允許單一自訂動作,且有預設內容文字,適用於正在篩選的來電。

Android 參考資料。android.app.Notification.CallStyle.forScreeningCall

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於