Notification.MetricStyle.CriticalMetric Property
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.
Returns which, if any, of the metrics is considered the "most important", or null if none are.
public Android.App.Notification.Metric? CriticalMetric { [Android.Runtime.Register("getCriticalMetric", "()Landroid/app/Notification$Metric;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getCriticalMetric", "()Landroid/app/Notification$Metric;", "", ApiSince=37)>]
member this.CriticalMetric : Android.App.Notification.Metric
Property Value
Returns which, if any, of the metrics is considered the "most important", or null if none are.
- Attributes
Remarks
Returns which, if any, of the metrics is considered the "most important", or null if none are. This may be used when the notification is displayed in other surfaces (such as a status bar chip).
By default, unless setCriticalMetric(int) has been set, the first metric in the list is considered the critical one.
Android reference for android.app.Notification.MetricStyle.getCriticalMetric.
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.