語言

Notification.CarExtender.Builder.SetReplyAction 方法

定義

設定待處理的意圖與遠端輸入,以傳達對此通知的回覆。

[Android.Runtime.Register("setReplyAction", "(Landroid/app/PendingIntent;Landroid/app/RemoteInput;)Landroid/app/Notification$CarExtender$Builder;", "GetSetReplyAction_Landroid_app_PendingIntent_Landroid_app_RemoteInput_Handler", ApiSince=23)]
public virtual Android.App.Notification.CarExtender.Builder SetReplyAction(Android.App.PendingIntent pendingIntent, Android.App.RemoteInput remoteInput);
[<Android.Runtime.Register("setReplyAction", "(Landroid/app/PendingIntent;Landroid/app/RemoteInput;)Landroid/app/Notification$CarExtender$Builder;", "GetSetReplyAction_Landroid_app_PendingIntent_Landroid_app_RemoteInput_Handler", ApiSince=23)>]
abstract member SetReplyAction : Android.App.PendingIntent * Android.App.RemoteInput -> Android.App.Notification.CarExtender.Builder
override this.SetReplyAction : Android.App.PendingIntent * Android.App.RemoteInput -> Android.App.Notification.CarExtender.Builder

參數

pendingIntent
PendingIntent

PendingIntent:回覆時會觸發的待處理意圖

remoteInput
RemoteInput

RemoteInput:遠端輸入包裹,負責傳送回覆

傳回

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

屬性

備註

設定待處理的意圖與遠端輸入,以傳達對此通知的回覆。

另請參閱:

本頁內容與程式碼範例受內容授權條款所規範。 Java 和 OpenJDK 是 Oracle 和/或其關係企業的商標或注冊商標。

最後更新於 2026-08-03 UTC。

Android 參考資料。android.app.Notification.CarExtender.Builder.setReplyAction

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

適用於