Notification.Builder.SetGroupAlertBehavior Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the group alert behavior for this notification.
[Android.Runtime.Register("setGroupAlertBehavior", "(I)Landroid/app/Notification$Builder;", "GetSetGroupAlertBehavior_IHandler", ApiSince=26)]
public virtual Android.App.Notification.Builder SetGroupAlertBehavior(Android.App.NotificationGroupAlertBehavior groupAlertBehavior);
[<Android.Runtime.Register("setGroupAlertBehavior", "(I)Landroid/app/Notification$Builder;", "GetSetGroupAlertBehavior_IHandler", ApiSince=26)>]
abstract member SetGroupAlertBehavior : Android.App.NotificationGroupAlertBehavior -> Android.App.Notification.Builder
override this.SetGroupAlertBehavior : Android.App.NotificationGroupAlertBehavior -> Android.App.Notification.Builder
Parameters
- groupAlertBehavior
- NotificationGroupAlertBehavior
int: Value is one of the following: Notification.GROUP_ALERT_ALL Notification.GROUP_ALERT_CHILDREN Notification.GROUP_ALERT_SUMMARY
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Sets the group alert behavior for this notification. Use this method to mute this notification if alerts for this notification's group should be handled by a different notification. This is only applicable for notifications that belong to a group. This must be called on all notifications you want to mute. For example, if you want only the summary of your group to make noise and/or peek on screen, all children in the group should have the group alert behavior Notification.GROUP_ALERT_SUMMARY. The default value is Notification.GROUP_ALERT_ALL.
Android reference for android.app.Notification.Builder.setGroupAlertBehavior.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.