Android Guides | Samples

Android.App.NotificationDefaults Enumeration

Enumerates values returned by several types and taken as a parameter of the Notification+Builder.SetDefaults member.

Syntax

[System.Flags]
public enum NotificationDefaults

Remarks

Members

Member NameDescription
AllUse all default values (where applicable).
LightsUse the default notification lights. This will ignore the NotificationFlags.ShowLights bit, and Notification.LedARGB, Notification.LedOffMS, or Notification.LedOnMS.
SoundUse the default notification sound. This will ignore any given Notification.Sound.
VibrateUse the default notification vibrate. This will ignore any given Notification.Vibrate. Using phone vibration requires the Permission.Vibrate permission.

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.App.NotificationDefaults are listed below.

See Also: Enum

Public Fields

AllNotificationDefaults. Use all default values (where applicable).
LightsNotificationDefaults. Use the default notification lights. This will ignore the NotificationFlags.ShowLights bit, and Notification.LedARGB, Notification.LedOffMS, or Notification.LedOnMS.
SoundNotificationDefaults. Use the default notification sound. This will ignore any given Notification.Sound.
VibrateNotificationDefaults. Use the default notification vibrate. This will ignore any given Notification.Vibrate. Using phone vibration requires the Permission.Vibrate permission.