-
- All Implemented Interfaces:
-
com.batch.android.messaging.view.PannableBannerFrameLayout.OnDismissListener,com.batch.android.messaging.view.formats.cep.BuildableRootView.OnActionListener
public final class CEPBannerContainer extends EmbeddedBannerContainer implements BuildableRootView.OnActionListener
Container for Batch's banners built from the CEP. Handles everything related to the banner: its lifecycle, window insets, etc...
<p> Kinda similar to https://android.googlesource.com/platform/frameworks/support.git/+/master/design/src/android/support/design/widget/BaseTransientBottomBar.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCEPBannerContainer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Contextcontextprivate final MessagingModulemessagingModuleprivate final MessagingAnalyticsDelegateanalyticsDelegateprivate final ViewGroupparentViewprivate final EmbeddedBannerContainer.BaseViewrootViewprivate final RelativeLayoutbannerViewprivate final BatchMessagepayloadMessageprivate final EmbeddedBannerContainer.VerticalEdgepinnedVerticalEdgeprivate final BooleanalreadyDismissedprivate final BooleanalreadyShownprivate final ObjectautoCloseHandlerTokenprivate final BroadcastReceiverdismissReceiverprivate final HandlermainThreadHandler
-
Method Summary
Modifier and Type Method Description UnitonCloseAction()Called when the close button is clicked. UnitonCTAAction(String id, String type, CTA cta)Called when a CTA is clicked. UnitonErrorAction(MessagingError cause)Called when the image download fails and the message is an image format. -
Methods inherited from class com.batch.android.messaging.view.formats.cep.CEPBannerContainer
dismiss, dismissOnMainThread, findBestParentView, layoutGravityForPinnedEdge, makeView, onDismiss, performAutoClose, show, unscheduleAutoClose -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCloseAction
Unit onCloseAction()
Called when the close button is clicked.
-
onCTAAction
Unit onCTAAction(String id, String type, CTA cta)
Called when a CTA is clicked.
-
onErrorAction
Unit onErrorAction(MessagingError cause)
Called when the image download fails and the message is an image format.
-
-
-
-