Notification.CallStyle.ForOngoingCall(Person, PendingIntent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為持續通話建立通話風格。
[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
人員:顯示為通話另一端的人。 該人還需要有一個非空的名字。 這個值不可能為零值。
- hangUpIntent
- PendingIntent
PendingIntent:使用者點擊掛斷動作時要發送的意圖。 這個值不可能為零值。
傳回
這個 Android.App.Notification.CallStyle 實例,允許通話串接。
- 屬性
備註
為持續通話建立通話風格。 此通知會有掛斷動作,最多可自訂兩個動作,且有預設內容文字以供通話進行。
Android 參考資料。android.app.Notification.CallStyle.forOngoingCall
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。