Notification.Builder.SetRemoteInputHistory 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetRemoteInputHistory(ICharSequence[]) |
設定遠端輸入歷史。 |
| SetRemoteInputHistory(String[]) |
設定遠端輸入歷史。 |
SetRemoteInputHistory(ICharSequence[])
設定遠端輸入歷史。
[Android.Runtime.Register("setRemoteInputHistory", "([Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetRemoteInputHistory_arrayLjava_lang_CharSequence_Handler", ApiSince=24)]
public virtual Android.App.Notification.Builder SetRemoteInputHistory(Java.Lang.ICharSequence[]? text);
[<Android.Runtime.Register("setRemoteInputHistory", "([Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetRemoteInputHistory_arrayLjava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member SetRemoteInputHistory : Java.Lang.ICharSequence[] -> Android.App.Notification.Builder
override this.SetRemoteInputHistory : Java.Lang.ICharSequence[] -> Android.App.Notification.Builder
參數
- text
- ICharSequence[]
角色序列
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
- 屬性
備註
設定遠端輸入歷史。 這應該設定為透過 RemoteInput 傳送的最新輸入,並在該通知不再相關時清除(例如聊天通知,當對方回覆後)。 最近的輸入必須儲存在 0 索引,第二新的輸入則儲存在 1 索引,依此類推。請注意,系統會限制輸入的顯示時間遠近,以及每個輸入的顯示比例。 注意:回覆文字只會顯示在包含至少一個 RemoteInput 動作的通知上。
Android 參考資料。android.app.Notification.Builder.setRemoteInputHistory
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetRemoteInputHistory(String[])
設定遠端輸入歷史。
public Android.App.Notification.Builder SetRemoteInputHistory(string[]? text);
member this.SetRemoteInputHistory : string[] -> Android.App.Notification.Builder
參數
- text
- String[]
角色序列
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
備註
設定遠端輸入歷史。 這應該設定為透過 RemoteInput 傳送的最新輸入,並在該通知不再相關時清除(例如聊天通知,當對方回覆後)。 最近的輸入必須儲存在 0 索引,第二新的輸入則儲存在 1 索引,依此類推。請注意,系統會限制輸入的顯示時間遠近,以及每個輸入的顯示比例。 注意:回覆文字只會顯示在包含至少一個 RemoteInput 動作的通知上。
Android 參考資料。android.app.Notification.Builder.setRemoteInputHistory
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。