Language

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

NotificationChannelGroup: 作成するグループ。 この値は null にすることはできません。

属性

注釈

NotificationChannel オブジェクトのグループ コンテナーを作成します。 これを使用して、既存のグループの名前を変更できます。 グループ情報はプレゼンテーションにのみ使用され、動作には使用されません。 グループはチャネルでは省略可能であり、グループに属するチャネルと属していないチャネルを混在させることができます。

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

android.app.NotificationManager.createNotificationChannelGroupの Android リファレンス。

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

適用対象