Notification.Builder.SetSortKey(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定一個排序鍵,讓這個通知和同一個套件的其他通知一起排序。
[Android.Runtime.Register("setSortKey", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetSortKey_Ljava_lang_String_Handler")]
public virtual Android.App.Notification.Builder SetSortKey(string? sortKey);
[<Android.Runtime.Register("setSortKey", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetSortKey_Ljava_lang_String_Handler")>]
abstract member SetSortKey : string -> Android.App.Notification.Builder
override this.SetSortKey : string -> Android.App.Notification.Builder
參數
- sortKey
- String
String
傳回
這個 Android.App.Notification.Builder 實例,允許通話串接。
- 屬性
備註
設定一個排序鍵,讓這個通知和同一個套件的其他通知一起排序。 如果已經套用外部排序,且應用程式想保留此排序,這會很有用。 通知會依字典序方式使用此值排序,但若提供不同的優先順序並提供排序鍵,可能會導致忽略此值。 此排序鍵也可用來排序通知群組的成員。 參見 setGroup(String)。
另請參閱:
Android 參考資料。android.app.Notification.Builder.setSortKey
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。