public class

FullScreenAdapter

extends MediaDisplayAdapter
java.lang.Object
   ↳ com.urbanairship.iam.MediaDisplayAdapter
     ↳ com.urbanairship.iam.fullscreen.FullScreenAdapter

Class Overview

Full screen adapter.

Summary

[Expand]
Inherited Constants
From interface com.urbanairship.iam.InAppMessageAdapter
Protected Constructors
FullScreenAdapter(InAppMessage message, FullScreenDisplayContent displayContent)
Default constructor.
Public Methods
static FullScreenAdapter newAdapter(InAppMessage message)
Creates a new full screen adapter.
boolean onDisplay(Activity activity, boolean isRedisplay, DisplayHandler displayHandler)
Called to display an in-app message.
[Expand]
Inherited Methods
From class com.urbanairship.iam.MediaDisplayAdapter
From class java.lang.Object
From interface com.urbanairship.iam.InAppMessageAdapter

Protected Constructors

protected FullScreenAdapter (InAppMessage message, FullScreenDisplayContent displayContent)

Default constructor.

Parameters
message The in-app message.
displayContent The display content.

Public Methods

public static FullScreenAdapter newAdapter (InAppMessage message)

Creates a new full screen adapter.

Parameters
message The in-app message.
Returns
  • The full screen adapter.

public boolean onDisplay (Activity activity, boolean isRedisplay, DisplayHandler displayHandler)

Called to display an in-app message. The display handler's requestDisplayLock(Activity) must be called during `onStart()` in either the activity or fragment, and if the request is denied must immediately dismiss the component without any other calls to the display handler. Once the activity or fragment is finished being displayed call finished(ResolutionInfo).

Parameters
activity The current resumed activity.
isRedisplay true If the in-app message is being redisplayed, otherwise false.
displayHandler The display handler.
Returns
  • true if the in-app message was able to be displayed, otherwise false to try again later.