java.lang.Object | |
↳ | com.urbanairship.util.NotificationIdGenerator |
An auto-incrementing notification ID generator.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NotificationIdGenerator() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static int |
getRange()
Get the range.
| ||||||||||
static int |
getStart()
Get the start value.
| ||||||||||
static int |
nextID()
Store the next ID.
| ||||||||||
static void |
setRange(int newRange)
Set the number of notifications to display (max range).
| ||||||||||
static void |
setStart(int value)
Set the count and start value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the range.
Get the start value.
Store the next ID.
Set the number of notifications to display (max range). Implicitly resets
the current id to getStart()
.
newRange | The number of notifications to display |
---|
Set the count and start value.
value | The integer value |
---|