Notification.MetricStyle.SetCriticalMetric(Int32) 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.
Indicates which of the metrics is considered the "most important".
[Android.Runtime.Register("setCriticalMetric", "(I)Landroid/app/Notification$MetricStyle;", "", ApiSince=37)]
public Android.App.Notification.MetricStyle SetCriticalMetric(int index);
[<Android.Runtime.Register("setCriticalMetric", "(I)Landroid/app/Notification$MetricStyle;", "", ApiSince=37)>]
member this.SetCriticalMetric : int -> Android.App.Notification.MetricStyle
Parameters
- index
- Int32
either the index (0-based) of an item in getMetrics(), or METRIC_INDEX_NONE to indicate no Metric should be used for this purpose
Returns
- Attributes
Remarks
Indicates which of the metrics is considered the "most important". This may be used when the notification is displayed in other surfaces (such as a status bar chip).
Android reference for android.app.Notification.MetricStyle.setCriticalMetric.
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.