Notification.Builder.SetShortCriticalText(String) 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 a very short string summarizing the most critical information contained in the notification.
[Android.Runtime.Register("setShortCriticalText", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetShortCriticalText_Ljava_lang_String_Handler", ApiSince=36)]
public virtual Android.App.Notification.Builder SetShortCriticalText(string? shortCriticalText);
[<Android.Runtime.Register("setShortCriticalText", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetShortCriticalText_Ljava_lang_String_Handler", ApiSince=36)>]
abstract member SetShortCriticalText : string -> Android.App.Notification.Builder
override this.SetShortCriticalText : string -> Android.App.Notification.Builder
Parameters
- shortCriticalText
- String
String: This value may be null.
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Sets a very short string summarizing the most critical information contained in the notification. Suggested max length is 7 characters, and there is no guarantee how much or how little of this text will be shown. This field is designed exclusively for the compact representation (hereafter "chip") shown when the notification is promoted ongoing. A chip's content may not be shown in certain states or if it cannot fit. Short critical text will always be the highest precedence content for a chip. Setting this to "" will ensure the chip has no content; null (the default) will fall back to the other options. A MetricStyle's critical metric is the next option for the chip's content. A time (from Notification.when) is the final source of content for the chip. If setUsesChronometer(boolean) is true, the chip content will be a chronometer, if that is positive (based on setChronometerCountDown(boolean)). If setShowWhen(boolean) is true, the chip content will be the time remaining until Notification.when, if positive.
Android reference for android.app.Notification.Builder.setShortCriticalText.
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.