NotificationCompat.ProgressStyle.Point


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(position: @IntRange(from = 1) Int)

Create a point element.

Public functions

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

NotificationCompat.ProgressStyle.Point

Optional color of this Segment

NotificationCompat.ProgressStyle.Point
setId(id: Int)

Optional ID used to uniquely identify the element across updates.

Public constructors

Point

Point(position: @IntRange(from = 1) Int)

Create a point element. The position of this point on the progress bar relative to getProgressMax

Parameters
position: @IntRange(from = 1) Int

See getPosition

Public functions

getColor

fun getColor(): @ColorInt Int

Returns the color of this Segment.

See also
setColor
COLOR_DEFAULT

for the default visual behavior when it is not set.

getId

fun getId(): Int

Optional ID used to uniquely identify the element across updates.

getPosition

fun getPosition(): @IntRange(from = 1) Int

Gets the position of this Point. The position of this point on the progress bar relative to getProgressMax.

setColor

fun setColor(color: @ColorInt Int): NotificationCompat.ProgressStyle.Point

Optional color of this Segment

setId

fun setId(id: Int): NotificationCompat.ProgressStyle.Point

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