NotificationCompat.ProgressStyle.Point


public final class NotificationCompat.ProgressStyle.Point


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

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

Create a point element.

Public methods

@ColorInt int

Returns the color of this Segment.

int

Optional ID used to uniquely identify the element across updates.

@IntRange(from = 1) int

Gets the position of this Point.

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

Optional color of this Segment

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

Optional ID used to uniquely identify the element across updates.

Public constructors

Point

Added in 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 getProgressMax

Parameters
@IntRange(from = 1) int position

See getPosition

Public methods

getColor

Added in 1.17.0
public @ColorInt int getColor()

Returns the color of this Segment.

See also
setColor
COLOR_DEFAULT

for the default visual behavior when it is not set.

getId

Added in 1.17.0
public int getId()

Optional ID used to uniquely identify the element across updates.

getPosition

Added in 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 getProgressMax.

setColor

Added in 1.17.0
public @NonNull NotificationCompat.ProgressStyle.Point setColor(@ColorInt int color)

Optional color of this Segment

setId

Added in 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.