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 | |
|---|---|
| Create a point element. | |
| Public methods | |
|---|---|
| Boolean | Needed for android. | 
| Int | getColor()Returns the color of this Segment. | 
| Int | getId()Optional ID used to uniquely identify the element across updates. | 
| Int | Gets the position of this Point. | 
| Int | hashCode() | 
| Notification.ProgressStyle.Point | Optional color of this Segment | 
| Notification.ProgressStyle.Point | Optional ID used to uniquely identify the element across updates. | 
Public constructors
Point
Point(position: Int)
Create a point element. The position of this point on the progress bar relative to ProgressStyle.getProgressMax
| Parameters | |
|---|---|
| position | Int: See getPositionValue is 1 or greater | 
Public methods
equals
fun equals(other: Any?): Boolean
Needed for android.app.Notification.Style#areNotificationsVisiblyDifferent
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
getId
fun getId(): Int
Optional ID used to uniquely identify the element across updates.
getPosition
fun getPosition(): Int
Gets the position of this Point. The position of this point on the progress bar relative to ProgressStyle.getProgressMax.
| Return | |
|---|---|
| Int | Value is 1 or greater | 
setColor
fun setColor(color: Int): Notification.ProgressStyle.Point
Optional color of this Segment
| Return | |
|---|---|
| Notification.ProgressStyle.Point | This value cannot be null. | 
setId
fun setId(id: Int): Notification.ProgressStyle.Point
Optional ID used to uniquely identify the element across updates. The default is 0.
| Return | |
|---|---|
| Notification.ProgressStyle.Point | This value cannot be null. | 
