# NotificationCompat.ProgressStyle.Point

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.ProgressStyle.Point) Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

*** ** * ** ***


```
public final class NotificationCompat.ProgressStyle.Point
```

<br />

*** ** * ** ***

A point within the progress bar, defining its position and color. 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.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#Point(int)(@https://developer.android.com/reference/androidx/annotation/IntRange(from = 1) int position)` Create a point element. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#getColor()()` Returns the color of this Point. |
| `int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#getId()()` Optional ID used to uniquely identify the element across updates. |
| `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 1) int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#getPosition()()` Gets the position of this Point. |
| `int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#getSemanticStyle()()` Returns the semantics applied to the Point. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#setColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Optional color of this Point. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#setId(int)(int id)` Optional ID used to uniquely identify the element across updates. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#setSemanticStyle(int)(int semanticStyle)` Applies semantics to the Point. |

## Public constructors

### Point

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public Point(@IntRange(from = 1) int position)
```

Create a point element. The position of this point on the progress bar relative to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#getProgressMax()` See `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#getPosition()`

## Public methods

### getColor

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @ColorInt int getColor()
```

Returns the color of this Point.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle.Point#setColor(int)` |   |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat#COLOR_DEFAULT()` | for the default visual behavior when it is not set. |

### getId

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public int getId()
```

Optional ID used to uniquely identify the element across updates.

### getPosition

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @IntRange(from = 1) int getPosition()
```

Gets the position of this Point. The position of this point on the progress bar relative to `https://developer.android.com/reference/androidx/core/app/NotificationCompat.ProgressStyle#getProgressMax()`.

### getSemanticStyle

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public int getSemanticStyle()
```

Returns the semantics applied to the Point. When the notification `https://developer.android.com/reference/android/app/Notification.html#FLAG_PROMOTED_ONGOING` this value is used to style (e.g. color) the point.

### setColor

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @NonNull NotificationCompat.ProgressStyle.Point setColor(@ColorInt int color)
```

Optional color of this Point.

### setId

Added in [1.17.0](https://developer.android.com/jetpack/androidx/releases/core#1.17.0)

```
public @NonNull NotificationCompat.ProgressStyle.Point setId(int id)
```

Optional ID used to uniquely identify the element across updates. The default is 0.

### setSemanticStyle

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
public @NonNull NotificationCompat.ProgressStyle.Point setSemanticStyle(int semanticStyle)
```

Applies semantics to the Point. When the notification `https://developer.android.com/reference/android/app/Notification.html#FLAG_PROMOTED_ONGOING` this value is used to style (e.g. color) the point.

If an app specifies *both* color and semantic style, the color overrides the style.