| com.glia.androidsdk.EngagementRequest |
Known Indirect Subclasses
|
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | EngagementRequest.EngagementRequestEvent<T> | ||||||||||
| class | EngagementRequest.Events | Engagement Request event types. | |||||||||
| enum | EngagementRequest.Outcome | Possible Engagement Request outcomes. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract String |
getId()
Returns Engagement Request unique ID
| ||||||||||
| abstract Optional<EngagementRequest.Outcome> |
getOutcome()
Return Engagement request Optional
EngagementRequest.Outcome which is one of
EngagementRequest.Outcome values. | ||||||||||
| abstract void |
off(EngagementRequestEvent<? super Void> event, Runnable listener)
Removes event listeners from the Engagement Request.
| ||||||||||
| abstract <T> void |
off(EngagementRequestEvent<T> event, Consumer<T> listener)
Removes event listeners from the Engagement Request.
| ||||||||||
| abstract <T> void |
on(EngagementRequestEvent<T> event, Consumer<T> listener)
Registers event listeners for Engagement Request.
| ||||||||||
| abstract void |
on(EngagementRequestEvent<? super Void> event, Runnable listener)
Registers event listeners for Engagement Request.
| ||||||||||
Returns Engagement Request unique ID
Return Engagement request Optional EngagementRequest.Outcome which is one of
EngagementRequest.Outcome values. If outcome is still undefined then it will return empty()
Removes event listeners from the Engagement Request.
If an event listener is removed while the Engagement Request is processing an event, it is not triggered with the current event.
Calling off with arguments which do not identify any currently registered
listener has no effect.
| event | One of EngagementRequest.Events |
|---|---|
| listener | Event listener to remove |
Removes event listeners from the Engagement Request.
If an event listener is removed while the Engagement Request is processing an event, it is not triggered with the current event.
Calling off with arguments which do not identify any currently registered
listener has no effect.
| event | One of EngagementRequest.Events |
|---|---|
| listener | Event listener to remove |
Registers event listeners for Engagement Request.
If a listener is added while the Engagement Request is processing an event, it is not triggered with the current event.
If multiple identical listeners are registered on the same event type
the duplicate instances are discarded. They do not cause the listener
to be called twice and do not need to be removed with the off(EngagementRequest.EngagementRequestEvent super Void>, Runnable)
method.
| event | One of EngagementRequest.Events |
|---|---|
| listener | Event listener to register |
Registers event listeners for Engagement Request.
If a listener is added while the Engagement Request is processing an event, it is not triggered with the current event.
If multiple identical listeners are registered on the same event type
the duplicate instances are discarded. They do not cause the listener
to be called twice and do not need to be removed with the off(EngagementRequest.EngagementRequestEvent super Void>, Runnable)
method.
Compared to on(EngagementRequestEvent, Consumer) this method
does not require the listener to consumer the payload.
This is useful when payload is of type Void.
| event | One of EngagementRequest.Events |
|---|---|
| listener | Event listener to register |