NotificationManager.CreateNotificationChannelGroup メソッド

定義

オブジェクトのグループ コンテナーを NotificationChannel 作成します。

[Android.Runtime.Register("createNotificationChannelGroup", "(Landroid/app/NotificationChannelGroup;)V", "GetCreateNotificationChannelGroup_Landroid_app_NotificationChannelGroup_Handler", ApiSince=26)]
public virtual void CreateNotificationChannelGroup (Android.App.NotificationChannelGroup group);
[<Android.Runtime.Register("createNotificationChannelGroup", "(Landroid/app/NotificationChannelGroup;)V", "GetCreateNotificationChannelGroup_Landroid_app_NotificationChannelGroup_Handler", ApiSince=26)>]
abstract member CreateNotificationChannelGroup : Android.App.NotificationChannelGroup -> unit
override this.CreateNotificationChannelGroup : Android.App.NotificationChannelGroup -> unit

パラメーター

group
NotificationChannelGroup

作成するグループ

属性

注釈

オブジェクトのグループ コンテナーを NotificationChannel 作成します。

これは、既存のグループの名前を変更するために使用できます。

グループ情報はプレゼンテーションにのみ使用され、動作には使用されません。 チャネルの場合、グループは省略可能であり、グループに属していないチャネルとそうでないチャネルを混在させることができます。

たとえば、アプリケーションが複数のアカウントをサポートしていて、それらのアカウントに類似のチャネルがある場合は、アカウント情報を各チャネルのラベルに追加するのではなく、アカウント固有のラベルを持つアカウントごとにグループを作成できます。

の Java ドキュメント android.app.NotificationManager.createNotificationChannelGroup(android.app.NotificationChannelGroup)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象