public abstract class

InAppMessageActivity

extends ThemedActivity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ androidx.core.app.ComponentActivity
             ↳ androidx.fragment.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_ASSETS Assets 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
DisplayHandler getDisplayHandler()
Gets the display handler.
long getDisplayTime()
Gets the total display time.
InAppMessage getMessage()
Gets the in-app message.
Assets getMessageAssets()
Gets the in-app message assets.
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 onPostCreate(Bundle savedInstanceState)
void onResume()
void onSaveInstanceState(Bundle outState)
[Expand]
Inherited Methods
From class com.urbanairship.messagecenter.ThemedActivity
From class androidx.fragment.app.FragmentActivity
From class androidx.core.app.ComponentActivity
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.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
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
From interface androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback
From interface androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator
From interface androidx.core.view.KeyEventDispatcher.Component
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner

Constants

public static final String DISPLAY_HANDLER_EXTRA_KEY

Display handler intent extra key.

Constant Value: "display_handler"

public static final String IN_APP_ASSETS

Assets intent extra key.

Constant Value: "assets"

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 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 Assets getMessageAssets ()

Gets the in-app message assets.

Returns
  • The in-app message assets.

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 onPostCreate (Bundle savedInstanceState)

protected void onResume ()

protected void onSaveInstanceState (Bundle outState)