java.lang.Object | |
↳ | com.mapsted.positioning.ConsumableEvents.EmptyEvent |
A data type to be used in Livedata for consumable event like a click. On first call to get method, it will return true. Subsequent calls to get method will return false. When used in live data, observer should handle the event only if get() is true.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EmptyEvent() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
get()
get will return the value and consume it.
| ||||||||||
boolean |
peek()
use peek to see the value without consuming
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
get will return the value and consume it.
use peek to see the value without consuming