Notification.ProgressStyle.SetStyledByProgress(Boolean) 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 whether the segments and points will be styled differently based on whether they are behind or ahead of the current progress.
[Android.Runtime.Register("setStyledByProgress", "(Z)Landroid/app/Notification$ProgressStyle;", "GetSetStyledByProgress_ZHandler", ApiSince=36)]
public virtual Android.App.Notification.ProgressStyle SetStyledByProgress(bool enabled);
[<Android.Runtime.Register("setStyledByProgress", "(Z)Landroid/app/Notification$ProgressStyle;", "GetSetStyledByProgress_ZHandler", ApiSince=36)>]
abstract member SetStyledByProgress : bool -> Android.App.Notification.ProgressStyle
override this.SetStyledByProgress : bool -> Android.App.Notification.ProgressStyle
Parameters
- enabled
- Boolean
boolean
Returns
This Android.App.Notification.ProgressStyle instance, allowing calls to be chained.
- Attributes
Remarks
Indicates whether the segments and points will be styled differently based on whether they are behind or ahead of the current progress. When true, segments appearing ahead of the current progress will be given a slightly different appearance to indicate that it is part of the progress bar that is not "filled". When false, all segments will be given the filled appearance, and it will be the app's responsibility to use setProgressTrackerIcon or segment colors to make the current progress clear to the user. the default value is true.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.Notification.ProgressStyle.setStyledByProgress.
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.