語言

NotificationChannelGroup 建構函式

定義

多載

名稱 Description
NotificationChannelGroup(String, ICharSequence)

建立通知頻道群組。

NotificationChannelGroup(String, String)

建立通知頻道群組。

NotificationChannelGroup(String, ICharSequence)

建立通知頻道群組。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)]
public NotificationChannelGroup(string? id, Java.Lang.ICharSequence? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)>]
new Android.App.NotificationChannelGroup : string * Java.Lang.ICharSequence -> Android.App.NotificationChannelGroup

參數

id
String

群組的識別碼。 每個包裹必須是獨一無二的。 若值過長,可能會被截斷。

name
ICharSequence

群組的使用者可見名稱。 當系統地點變更時,你可以透過監聽 Intent#ACTION_LOCALE_CHANGED 廣播來重新命名此群組。 <p>建議最大長度為40個字元;若字元過長,數值可被截斷。

屬性

備註

建立通知頻道群組。

Android 參考資料。android.app.NotificationChannelGroup.NotificationChannelGroup

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

適用於

NotificationChannelGroup(String, String)

建立通知頻道群組。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)]
public NotificationChannelGroup(string? id, string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)>]
new Android.App.NotificationChannelGroup : string * string -> Android.App.NotificationChannelGroup

參數

id
String

String:群體的ID。 每個包裹必須是獨一無二的。 若值過長,可能會被截斷。

name
String

CharSequence:群組的使用者可見名稱。 當系統地點變更時,您可以透過監聽Intent.ACTION_LOCALE_CHANGED廣播來重新命名此群組。 建議最大長度為40字元;若值過長,可能會被截斷。

屬性

備註

建立通知頻道群組。

Android 參考資料。android.app.NotificationChannelGroup.NotificationChannelGroup

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

適用於