public interface AlawarObserver
Modifier and Type | Interface and Description |
---|---|
static class |
AlawarObserver.SimpleAlawarObserver
A convenience class to extend when you only want to listen for a subset
of
AlawarObserver 's events. |
Modifier and Type | Method and Description |
---|---|
void |
onAnchorCompleted(String anchorId,
com.alawar.sdk.model.AlawarAnchor anchor)
Called when server sends response that action connected with anchor is completed
|
void |
onAnchorShown(String anchorId,
com.alawar.sdk.model.AlawarAnchor anchor)
Called when banner for anchor is shown
|
void |
onError(AlawarException exception)
Called when any error occures during asynchronous work
|
boolean |
onOfferCompleted(com.alawar.sdk.model.AlawarCompletedOffer offer)
Called when server sends data about new completed offer
|
void |
onSessionStarted(com.alawar.sdk.model.AlawarSession session)
Called when session is started
|
void onSessionStarted(com.alawar.sdk.model.AlawarSession session)
session
- started session that contains all related informationboolean onOfferCompleted(com.alawar.sdk.model.AlawarCompletedOffer offer)
offer
- offer marked as completed on servervoid onAnchorShown(String anchorId, com.alawar.sdk.model.AlawarAnchor anchor)
anchorId
- id of connected anchoranchor
- data about anchor and banner that was shownvoid onAnchorCompleted(String anchorId, com.alawar.sdk.model.AlawarAnchor anchor)
anchorId
- id of connected anchoranchor
- data about anchor and banner to showvoid onError(AlawarException exception)
exception
- any exception if one is thrown during server response handling