public static class

BannerFragment.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.iam.banner.BannerFragment.Builder

Class Overview

BannerFragment builder.

Summary

Public Methods
BannerFragment build()
Builds the fragment.
BannerFragment.Builder setCache(InAppMessageCache cache)
Sets the cache.
BannerFragment.Builder setDisplayHandler(DisplayHandler displayHandler)
Sets the display handler.
BannerFragment.Builder setExitAnimation(int animation)
Sets the exit animation.
BannerFragment.Builder setInAppMessage(InAppMessage inAppMessage)
Sets the in-app message.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public BannerFragment build ()

Builds the fragment.

Returns
  • The banner fragment.
Throws
IllegalArgumentException if the in-app message or display handler is not set.

public BannerFragment.Builder setCache (InAppMessageCache cache)

Sets the cache.

Parameters
cache The in-app message cache.
Returns
  • The builder instance.

public BannerFragment.Builder setDisplayHandler (DisplayHandler displayHandler)

Sets the display handler.

Parameters
displayHandler The display handler.
Returns
  • The builder instance.

public BannerFragment.Builder setExitAnimation (int animation)

Sets the exit animation.

Parameters
animation The exit animation.
Returns
  • The builder instance.

public BannerFragment.Builder setInAppMessage (InAppMessage inAppMessage)

Sets the in-app message.

Parameters
inAppMessage The in-app message.
Returns
  • The builder instance.