public class CBUIManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CBUIManager.Command |
| Modifier and Type | Field and Description |
|---|---|
static int |
DISMISS_IMPRESSION_IF_DISPLAYED |
static int |
SHOW_IMPRESSION_FOR_AD_UNIT |
static int |
VC_REMOVE_IMPRESSION |
CBViewController |
viewController |
| Constructor and Description |
|---|
CBUIManager(CBReachability reachability,
Sdk sdkFromConstructor,
CBTrack track,
Handler uiHandler,
CBViewController viewController) |
| Modifier and Type | Method and Description |
|---|---|
CBViewController |
getCurrentViewController()
Returns the view controller object.
|
Activity |
getDisplayActivity()
return the activity in which we should display the Chartboost impression
|
void |
impressionCloseTriggered(CBImpression impression)
Called when the impression is closed by the user
|
boolean |
isAnyViewVisible()
returns true if any impression view is visible (this includes loading views!)
|
void |
queueDisplayView(CBImpression impression)
This is the method which triggers an impression or loading view to be displayed.
|
void |
startActivity(CBImpression impression) |
public final CBViewController viewController
public static final int SHOW_IMPRESSION_FOR_AD_UNIT
public static final int DISMISS_IMPRESSION_IF_DISPLAYED
public static final int VC_REMOVE_IMPRESSION
public CBUIManager(CBReachability reachability, Sdk sdkFromConstructor, CBTrack track, Handler uiHandler, CBViewController viewController)
public Activity getDisplayActivity()
public CBViewController getCurrentViewController()
public boolean isAnyViewVisible()
public void queueDisplayView(CBImpression impression)
CBImpressionActivity will be
started up and then happenimpression - public void startActivity(CBImpression impression)
public void impressionCloseTriggered(CBImpression impression)
impression -