次の方法で共有


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)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象