public abstract class

InAppMessageActivity

extends ThemedActivity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ android.support.v4.app.SupportActivity
             ↳ android.support.v4.app.FragmentActivity
               ↳ com.urbanairship.messagecenter.ThemedActivity
                 ↳ com.urbanairship.iam.InAppMessageActivity
Known Direct Subclasses

Class Overview

In-app message activity.

Summary

Constants
String DISPLAY_HANDLER_EXTRA_KEY Display handler intent extra key.
String IN_APP_CACHE_KEY Cache intent extra key.
String IN_APP_MESSAGE_KEY In-app message extra key.
[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
InAppMessageActivity()
Public Methods
void onBackPressed()
Protected Methods
InAppMessageCache getCache()
Gets the in-app message cache.
DisplayHandler getDisplayHandler()
Gets the display handler.
long getDisplayTime()
Gets the total display time.
InAppMessage getMessage()
Gets the in-app message.
void onCreate(Bundle savedInstanceState)
abstract void onCreateMessage(Bundle savedInstanceState)
Called during onCreate(Bundle) after the in-app message and display handler are parsed from the intent.
void onPause()
void onResume()
void onSaveInstanceState(Bundle outState)
void onStart()
[Expand]
Inherited Methods
From class com.urbanairship.messagecenter.ThemedActivity
From class android.support.v4.app.FragmentActivity
From class android.support.v4.app.SupportActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.arch.lifecycle.LifecycleOwner
From interface android.arch.lifecycle.ViewModelStoreOwner
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.support.v4.app.ActivityCompat.OnRequestPermissionsResultCallback
From interface android.support.v4.app.ActivityCompat.RequestPermissionsRequestCodeValidator
From interface android.support.v4.view.KeyEventDispatcher.Component
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback

Constants

public static final String DISPLAY_HANDLER_EXTRA_KEY

Display handler intent extra key.

Constant Value: "display_handler"

public static final String IN_APP_CACHE_KEY

Cache intent extra key.

Constant Value: "cache"

public static final String IN_APP_MESSAGE_KEY

In-app message extra key.

Constant Value: "in_app_message"

Public Constructors

public InAppMessageActivity ()

Public Methods

public void onBackPressed ()

Protected Methods

protected InAppMessageCache getCache ()

Gets the in-app message cache.

Returns
  • The in-app message cache.

protected DisplayHandler getDisplayHandler ()

Gets the display handler.

Returns
  • The display handler.

protected long getDisplayTime ()

Gets the total display time.

Returns
  • The display time.

protected InAppMessage getMessage ()

Gets the in-app message.

Returns
  • The in-app message.

protected void onCreate (Bundle savedInstanceState)

protected abstract void onCreateMessage (Bundle savedInstanceState)

Called during onCreate(Bundle) after the in-app message and display handler are parsed from the intent.

Parameters
savedInstanceState The saved instance state.

protected void onPause ()

protected void onResume ()

protected void onSaveInstanceState (Bundle outState)

protected void onStart ()