public class

BannerView

extends FrameLayout
implements Banner
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.urbanairship.push.iam.view.BannerView

Class Overview

The banner view for in-app messages.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
BannerView(Context context)
Construct a banner view.
BannerView(Context context, AttributeSet attrs)
Construct a banner view.
BannerView(Context context, AttributeSet attrs, int defStyleAttr)
Construct a banner view.
Public Methods
void setNotificationActionButtonGroup(NotificationActionButtonGroup group)
Sets the action buttons from a NotificationActionButtonGroup.
void setOnActionClickListener(Banner.OnActionClickListener onClickListener)
Sets the listener for action button clicks
void setOnDismissClickListener(Banner.OnDismissClickListener onClickListener)
Sets the listener for dismiss button clicks
void setPrimaryColor(int color)
Sets the primary banner color.
void setSecondaryColor(int color)
Sets the secondary banner color.
void setText(CharSequence text)
Sets the banner's text.
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.urbanairship.push.iam.view.Banner

Public Constructors

public BannerView (Context context)

Construct a banner view.

Parameters
context A Context object used to access application assets.

public BannerView (Context context, AttributeSet attrs)

Construct a banner view.

Parameters
context A Context object used to access application assets.
attrs The view's attributes.

public BannerView (Context context, AttributeSet attrs, int defStyleAttr)

Construct a banner view.

Parameters
context A Context object used to access application assets.
attrs The view's attributes.
defStyleAttr The default style attribute resource ID.

Public Methods

public void setNotificationActionButtonGroup (NotificationActionButtonGroup group)

Sets the action buttons from a NotificationActionButtonGroup.

Parameters
group The notification action button group.

public void setOnActionClickListener (Banner.OnActionClickListener onClickListener)

Sets the listener for action button clicks

Parameters
onClickListener The action button listener.

public void setOnDismissClickListener (Banner.OnDismissClickListener onClickListener)

Sets the listener for dismiss button clicks

Parameters
onClickListener The dismiss listener.

public void setPrimaryColor (int color)

Sets the primary banner color.

Parameters
color The primary color.

public void setSecondaryColor (int color)

Sets the secondary banner color.

Parameters
color The secondary color.

public void setText (CharSequence text)

Sets the banner's text.

Parameters
text Banner's text.