Added in API level 36

Point


class Point
kotlin.Any
   ↳ android.app.Notification.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: Int)

Create a point element.

Public methods
Boolean
equals(other: Any?)

Needed for android.

Int

Returns the color of this Segment.

Int

Optional ID used to uniquely identify the element across updates.

Int

Gets the position of this Point.

Int

Notification.ProgressStyle.Point
setColor(color: Int)

Optional color of this Segment

Notification.ProgressStyle.Point
setId(id: Int)

Optional ID used to uniquely identify the element across updates.

Public constructors

Point

Added in API level 36
Point(position: Int)

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

Parameters
position Int: See getPosition

Public methods

equals

Added in API level 36
fun equals(other: Any?): Boolean

Needed for android.app.Notification.Style#areNotificationsVisiblyDifferent

Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getColor

Added in API level 36
fun getColor(): Int

Returns the color of this Segment.

See Also

getId

Added in API level 36
fun getId(): Int

Optional ID used to uniquely identify the element across updates.

getPosition

Added in API level 36
fun getPosition(): Int

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

hashCode

Added in API level 36
fun hashCode(): Int
Return
Int a hash code value for this object.

setColor

Added in API level 36
fun setColor(color: Int): Notification.ProgressStyle.Point

Optional color of this Segment

Return
Notification.ProgressStyle.Point This value cannot be null.

setId

Added in API level 36
fun setId(id: Int): Notification.ProgressStyle.Point

Optional ID used to uniquely identify the element across updates.

Return
Notification.ProgressStyle.Point This value cannot be null.