| java.lang.Object | |||
| ↳ | com.urbanairship.iam.ForegroundDisplayAdapter | ||
| ↳ | com.urbanairship.iam.MediaDisplayAdapter | ||
| ↳ | com.urbanairship.iam.banner.BannerAdapter | ||
Banner display adapter.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | BANNER_CONTAINER_ID | Metadata an app can use to specify the banner's container ID per activity. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.urbanairship.iam.InAppMessageAdapter
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
BannerAdapter(InAppMessage message, BannerDisplayContent displayContent)
Default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
isReady(Context context)
Called before displaying but after the message is prepared.
| ||||||||||
| static BannerAdapter |
newAdapter(InAppMessage message)
Creates a new banner adapter.
| ||||||||||
| void | onDisplay(Context context, DisplayHandler displayHandler) | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ViewGroup |
getContainerView(Activity activity)
Gets the banner's container view.
| ||||||||||
| BannerView |
onCreateView(Activity activity, ViewGroup viewGroup)
Inflates the banner view.
| ||||||||||
| void |
onDisplayFinished(Context context)
Called when the banner is finished displaying.
| ||||||||||
| void |
onViewCreated(BannerView view, Activity activity, ViewGroup viewGroup)
Called after the banner view is created.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.iam.MediaDisplayAdapter
| |||||||||||
From class
com.urbanairship.iam.ForegroundDisplayAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.iam.InAppMessageAdapter
| |||||||||||
Metadata an app can use to specify the banner's container ID per activity.
Default constructor.
| message | The in-app message. |
|---|---|
| displayContent | The display content. |
Called before displaying but after the message is prepared.
| context | The application context. |
|---|
true if the message is ready to be displayed, otherwise false.
Creates a new banner adapter.
| message | The in-app message. |
|---|
| IllegalArgumentException | If the message is not a banner in-app message. |
|---|
Gets the banner's container view.
| activity | The activity. |
|---|
Inflates the banner view.
| activity | The activity. |
|---|---|
| viewGroup | The container view. |
Called when the banner is finished displaying.
| context | The context. |
|---|
Called after the banner view is created.
| view | The banner view. |
|---|---|
| activity | The activity. |
| viewGroup | The container view. |