Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ProgressStyle

*** ** * ** ***

```
open class ProgressStyle : Notification.Style
```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [android.app.Notification.Style](https://developer.android.com/reference/kotlin/android/app/Notification.Style) ||
|   | ↳ | [android.app.Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) |

A Notification Style used to define a notification whose expanded state includes a highly customizable progress bar with segments, points, a custom tracker icon, and custom icons at the start and end of the progress bar.

This style is suggested for use cases where the app is showing a tracker to the user of a thing they are interested in: the location of a car on its way to pick them up, food being delivered, or their own progress in a navigation journey.

To use this style with your Notification, feed it to `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setStyle(android.app.Notification.Style)` like so:

```kotlin
new Notification.Builder(context)
    .setSmallIcon(R.drawable.ic_notification)
    .setColor(Color.GREEN)
    .setColorized(true)
    .setContentTitle("Arrive 10:08 AM").
    .setContentText("Dominique Ansel Bakery Soho")
    .addAction(new Notification.Action("Exit navigation",...))
    .setStyle(new Notification.ProgressStyle()
        .setStyledByProgress(false)
        .setProgress(456)
        .setProgressTrackerIcon(Icon.createWithResource(R.drawable.ic_driving_tracker))
        .addProgressSegment(new Segment(41).setColor(Color.BLACK))
        .addProgressSegment(new Segment(552).setColor(Color.YELLOW))
        .addProgressSegment(new Segment(253).setColor(Color.YELLOW))
        .addProgressSegment(new Segment(94).setColor(Color.BLUE))
        .addProgressPoint(new Point(60).setColor(Color.RED))
        .addProgressPoint(new Point(560).setColor(Color.YELLOW))
    )
  
```

NOTE: The progress bar layout will be mirrored for RTL layout.

NOTE: The extras set by `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#setProgress(kotlin.Int,%20kotlin.Int,%20kotlin.Boolean)` will be overridden by the values set on this style object when the notification is built. Therefore, that method is not used with this style.

## Summary

| Nested classes ||
|---|---|
|   | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point` A point within the progress bar, defining its position and color. |
|   | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment` A segment of the progress bar, which defines its length and color. |

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#ProgressStyle()()` <br /> |

| Public methods ||
|---|---|
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#addProgressPoint(android.app.Notification.ProgressStyle.Point)(point: https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point)` Adds another point. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#addProgressSegment(android.app.Notification.ProgressStyle.Segment)(segment: https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment)` Appends a segment to the end of the progress bar. |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgress()()` Gets the progress value of the progress bar. |
| open [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)? | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressEndIcon()()` Gets the progress bar end icon. |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressMax()()` Gets the sum of the lengths of all Segments in the style, which defines the maximum progress. |
| open [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Notification.ProgressStyle.Point](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point)!\> | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressPoints()()` Gets the points that are displayed on the progress bar. |
| open [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Notification.ProgressStyle.Segment](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment)!\> | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressSegments()()` Gets the segments that define the background layer of the progress bar. |
| open [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)? | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressStartIcon()()` Gets the progress bar start icon. |
| open [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)? | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#getProgressTrackerIcon()()` Gets the progress tracker icon for the progress bar. |
| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#isProgressIndeterminate()()` Get indeterminate value of the progress bar. |
| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#isStyledByProgress()()` Gets whether the progress bar's style is based on its progress. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgress(kotlin.Int)(progress: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Specifies the progress (in the same units as `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment#getLength()`) of the tracker along the length of the bar. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressEndIcon(android.graphics.drawable.Icon)(endIcon: https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?)` An optional square icon that appears at the end of the progress bar. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressIndeterminate(kotlin.Boolean)(indeterminate: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Used to indicate an initialization state without a known progress amount. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressPoints(kotlin.collections.MutableList)(points: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point!>)` Replaces all the progress points. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressSegments(kotlin.collections.MutableList)(progressSegments: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment!>)` Sets or replaces the segments of the progress bar. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressStartIcon(android.graphics.drawable.Icon)(startIcon: https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?)` An optional square icon that appears at the start of the progress bar. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressTrackerIcon(android.graphics.drawable.Icon)(trackerIcon: https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?)` An optional icon that can appear as an overlay on the bar at the point of current progress. |
| open [Notification.ProgressStyle](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#) | `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setStyledByProgress(kotlin.Boolean)(enabled: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Indicates whether the segments and points will be styled differently based on whether they are behind or ahead of the current progress. |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#build()()` Calls `https://developer.android.com/reference/kotlin/android/app/Notification.Builder#build()` on the Builder this Style is attached to. Note: Calling build() multiple times returns the same Notification instance, so reusing a builder to create multiple Notifications is discouraged. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#checkBuilder()()` <br /> | | `https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#getStandardView(kotlin.Int)(layoutId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetBigContentTitle(kotlin.CharSequence)(title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle(). <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetSummaryText(kotlin.CharSequence)(cs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the first line of text after the detail section in the expanded form of the template. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#setBuilder(android.app.Notification.Builder)(builder: https://developer.android.com/reference/kotlin/android/app/Notification.Builder!)` <br /> | ||

| Inherited properties ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification.Builder!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#mBuilder:android.app.Notification.Builder` <br /> | ||

## Public constructors

### ProgressStyle

```
ProgressStyle()
```

## Public methods

### addProgressPoint

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun addProgressPoint(point: Notification.ProgressStyle.Point): Notification.ProgressStyle
```

Adds another point.

Points within a progress bar are used to visualize distinct stages or milestones. For example, you might use points to mark stops in a multi-stop navigation journey, where each point represents a destination.

Points can be added in any order, as their position within the progress bar is determined by their individual `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point#getPosition()`.

| Parameters ||
|---|---|
| `point` | [Notification.ProgressStyle.Point](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### addProgressSegment

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun addProgressSegment(segment: Notification.ProgressStyle.Segment): Notification.ProgressStyle
```

Appends a segment to the end of the progress bar.

Segments allow for creating progress bars with multiple colors or sections to represent different stages or categories of progress. For example, Traffic conditions along a navigation journey.

| Parameters ||
|---|---|
| `segment` | [Notification.ProgressStyle.Segment](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### getProgress

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgress(): Int
```

Gets the progress value of the progress bar.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | Value is 0 or greater |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgress(kotlin.Int)`

### getProgressEndIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressEndIcon(): Icon?
```

Gets the progress bar end icon.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?` | This value may be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressEndIcon(android.graphics.drawable.Icon)`

### getProgressMax

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressMax(): Int
```

Gets the sum of the lengths of all Segments in the style, which defines the maximum progress. Defaults to 100 when segments are omitted.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | Value is 0 or greater |

### getProgressPoints

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressPoints(): MutableList<Notification.ProgressStyle.Point!>
```

Gets the points that are displayed on the progress bar. .

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point!>` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressPoints(kotlin.collections.MutableList)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#addProgressPoint(android.app.Notification.ProgressStyle.Point)`

### getProgressSegments

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressSegments(): MutableList<Notification.ProgressStyle.Segment!>
```

Gets the segments that define the background layer of the progress bar.

If no segments are provided, the progress bar will be rendered with a single segment with length 100 and default color.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment!>` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressSegments(kotlin.collections.MutableList)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#addProgressSegment(android.app.Notification.ProgressStyle.Segment)`

### getProgressStartIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressStartIcon(): Icon?
```

Gets the progress bar start icon.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?` | This value may be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressStartIcon(android.graphics.drawable.Icon)`

### getProgressTrackerIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getProgressTrackerIcon(): Icon?
```

Gets the progress tracker icon for the progress bar.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#?` | This value may be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressTrackerIcon(android.graphics.drawable.Icon)`

### isProgressIndeterminate

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun isProgressIndeterminate(): Boolean
```

Get indeterminate value of the progress bar.
**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressIndeterminate(kotlin.Boolean)`

### isStyledByProgress

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun isStyledByProgress(): Boolean
```

Gets whether the progress bar's style is based on its progress.
**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setStyledByProgress(kotlin.Boolean)`

### setProgress

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgress(progress: Int): Notification.ProgressStyle
```

Specifies the progress (in the same units as `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment#getLength()`) of the tracker along the length of the bar.

The max progress value is the sum of all Segment lengths. The default value is 0.

| Parameters ||
|---|---|
| `progress` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Value is 0 or greater |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setProgressEndIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressEndIcon(endIcon: Icon?): Notification.ProgressStyle
```

An optional square icon that appears at the end of the progress bar. This icon will be cropped to its central square. This icon will NOT be mirrored in RTL layouts.

| Parameters ||
|---|---|
| `endIcon` | [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setProgressIndeterminate

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressIndeterminate(indeterminate: Boolean): Notification.ProgressStyle
```

Used to indicate an initialization state without a known progress amount. When specified, the following fields are ignored:

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgress(kotlin.Int)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressSegments(kotlin.collections.MutableList)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressPoints(kotlin.collections.MutableList)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setProgressTrackerIcon(android.graphics.drawable.Icon)`
- `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#setStyledByProgress(kotlin.Boolean)`

### setProgressPoints

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressPoints(points: MutableList<Notification.ProgressStyle.Point!>): Notification.ProgressStyle
```

Replaces all the progress points.

Points within a progress bar are used to visualize distinct stages or milestones. For example, you might use points to mark stops in a multi-stop navigation journey, where each point represents a destination.

| Parameters ||
|---|---|
| `points` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Notification.ProgressStyle.Point](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Point)!\>: This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setProgressSegments

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressSegments(progressSegments: MutableList<Notification.ProgressStyle.Segment!>): Notification.ProgressStyle
```

Sets or replaces the segments of the progress bar.

Segments allow for creating progress bars with multiple colors or sections to represent different stages or categories of progress. For example, Traffic conditions along a navigation journey.

| Parameters ||
|---|---|
| `progressSegments` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Notification.ProgressStyle.Segment](https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle.Segment)!\>: This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setProgressStartIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressStartIcon(startIcon: Icon?): Notification.ProgressStyle
```

An optional square icon that appears at the start of the progress bar. This icon will be cropped to its central square. This icon will NOT be mirrored in RTL layouts.

| Parameters ||
|---|---|
| `startIcon` | [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setProgressTrackerIcon

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setProgressTrackerIcon(trackerIcon: Icon?): Notification.ProgressStyle
```

An optional icon that can appear as an overlay on the bar at the point of current progress. Aspect ratio may be anywhere from 2:1 to 1:2; content outside that aspect ratio range will be cropped. This icon will be mirrored in RTL.

| Parameters ||
|---|---|
| `trackerIcon` | [Icon](https://developer.android.com/reference/kotlin/android/graphics/drawable/Icon.html#)?: This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |

### setStyledByProgress

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setStyledByProgress(enabled: Boolean): Notification.ProgressStyle
```

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`.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.ProgressStyle#` | This value cannot be `null`. |