public abstract class

ForegroundDisplayAdapter

extends Object
implements InAppMessageAdapter
java.lang.Object
   ↳ com.urbanairship.iam.ForegroundDisplayAdapter
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Display adapter that is only ready when the application has at least one resumed activity that is not excluded using EXCLUDE_FROM_AUTO_SHOW.

Summary

[Expand]
Inherited Constants
From interface com.urbanairship.iam.InAppMessageAdapter
Public Constructors
ForegroundDisplayAdapter()
Public Methods
boolean isReady(Context context)
Called before displaying but after the message is prepared.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.iam.InAppMessageAdapter

Public Constructors

public ForegroundDisplayAdapter ()

Public Methods

public boolean isReady (Context context)

Called before displaying but after the message is prepared.

Parameters
context The application context.
Returns
  • true if the message is ready to be displayed, otherwise false.