Package com.marigold.sdk
Class MessageActivity
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2,android.view.KeyEvent.Callback,android.view.LayoutInflater.Factory,android.view.LayoutInflater.Factory2,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public final class MessageActivity extends Activity
Displays full-screen messages with navigation and dismissal controls.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageActivity()
-
Method Summary
Modifier and Type Method Description UnitonWindowFocusChanged(Boolean hasFocus)ObjectonRetainNonConfigurationInstance()UnitonBackPressed()final static IntentintentForMessage(Context context, Bundle bundle, Message message)Creates an Intent for correctly displaying a Marigold Message Activity. final static IntentintentForMessage(Context context, Bundle bundle, String messageId)Creates an Intent for correctly displaying a Marigold Message Activity. -
Methods inherited from class android.content.ContextWrapper
getApplicationContext, getApplicationInfo, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDataDir, getDeviceId, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalMediaDirs, getFilesDir, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, isDeviceProtectedStorage, isRestricted, isUiContext, sendOrderedBroadcast -
Methods inherited from class android.app.Activity
addContentView, clearOverrideActivityTransition, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dump, enterPictureInPictureMode, enterPictureInPictureMode, findViewById, finish, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCaller, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentCaller, getCurrentFocus, getFragmentManager, getInitialCaller, getIntent, getLastNonConfigurationInstance, getLaunchedFromPackage, getLaunchedFromUid, getLayoutInflater, getLoaderManager, getLocalClassName, getMaxNumPictureInPictureActions, getMediaController, getMenuInflater, getOnBackInvokedDispatcher, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSplashScreen, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isActivityTransitionRunning, isChangingConfigurations, isChild, isDestroyed, isFinishing, isHandoffEnabled, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLaunchedFromBubble, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActivityReenter, onActivityResult, onAttachFragment, onContextItemSelected, onContextMenuClosed, onCreate, onCreateDescription, onCreateNavigateUpTaskStack, onCreateOptionsMenu, onCreateThumbnail, onEnterAnimationComplete, onGenericMotionEvent, onGetDirectActions, onHandoffActivityDataRequested, onKeyShortcut, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMultiWindowModeChanged, onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, onNewIntent, onOptionsItemSelected, onOptionsMenuClosed, onPerformDirectAction, onPictureInPictureModeChanged, onPictureInPictureModeChanged, onPictureInPictureRequested, onPictureInPictureUiStateChanged, onPostCreate, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onProvideAssistContent, onProvideAssistData, onProvideReferrer, onRequestPermissionsResult, onRequestPermissionsResult, onRestoreInstanceState, onSaveInstanceState, onStateNotSaved, onTopResumedActivityChanged, onTouchEvent, onTrackballEvent, onUserInteraction, onVisibleBehindCanceled, openContextMenu, openOptionsMenu, overrideActivityTransition, overrideActivityTransition, overridePendingTransition, overridePendingTransition, postponeEnterTransition, recreate, registerActivityLifecycleCallbacks, registerForContextMenu, registerScreenCaptureCallback, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestFullscreenMode, requestOpenInBrowserEducation, requestPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, requireViewById, runOnUiThread, setActionBar, setAllowCrossUidActivitySwitchFromBelow, setContentTransitionManager, setContentView, setContentView, setContentView, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setHandoffEnabled, setImmersive, setInheritShowWhenLocked, setIntent, setLocusContext, setMediaController, setPictureInPictureParams, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRecentsScreenshotEnabled, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setShouldDockBigOverlays, setShowWhenLocked, setTaskDescription, setTitle, setTitleColor, setTranslucent, setTurnScreenOn, setVisible, setVolumeControlStream, setVrModeEnabled, shouldDockBigOverlays, shouldShowRequestPermissionRationale, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivityForResult, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterActivityLifecycleCallbacks, unregisterForContextMenu, unregisterScreenCaptureCallback -
Methods inherited from class android.view.ContextThemeWrapper
applyOverrideConfiguration, getAssets, getResources, getTheme, setTheme -
Methods inherited from class android.content.Context
bindIsolatedService, bindIsolatedService, bindService, bindService, bindService, bindService, bindServiceAsUser, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkContentUriPermissionFull, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getColor, getColorStateList, getDatabasePath, getDir, getDrawable, getExternalFilesDir, getExternalFilesDirs, getFileStreamPath, getSharedPreferences, getString, getString, getSystemService, getSystemService, getSystemServiceName, getText, getUpdateableFlags, grantUriPermission, moveDatabaseFrom, moveSharedPreferencesFrom, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, rebindService, registerComponentCallbacks, registerDeviceIdChangeListener, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeSelfPermissionOnKill, revokeSelfPermissionsOnKill, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendBroadcastWithMultiplePermissions, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startForegroundService, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterComponentCallbacks, unregisterDeviceIdChangeListener, unregisterReceiver, updateServiceBindings, updateServiceGroup -
Methods inherited from class android.view.Window.Callback
dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onContentChanged, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onMenuItemSelected, onMenuOpened, onPanelClosed, onPointerCaptureChanged, onPreparePanel, onProvideKeyboardShortcuts, onSearchRequested, onSearchRequested, onWindowAttributesChanged, onWindowStartingActionMode, onWindowStartingActionMode -
Methods inherited from class android.content.ComponentCallbacks
onConfigurationChanged, onLowMemory -
Methods inherited from class android.view.View.OnCreateContextMenuListener
onCreateContextMenu -
Methods inherited from class android.view.LayoutInflater.Factory2
onCreateView -
Methods inherited from class android.view.LayoutInflater.Factory
onCreateView -
Methods inherited from class android.view.KeyEvent.Callback
onKeyDown, onKeyLongPress, onKeyMultiple, onKeyUp -
Methods inherited from class android.content.ComponentCallbacks2
onTrimMemory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onWindowFocusChanged
Unit onWindowFocusChanged(Boolean hasFocus)
-
onRetainNonConfigurationInstance
Object onRetainNonConfigurationInstance()
-
onBackPressed
@Deprecated(message = "Deprecated in Java") Unit onBackPressed()
-
intentForMessage
final static Intent intentForMessage(Context context, Bundle bundle, Message message)
Creates an Intent for correctly displaying a Marigold Message Activity. Use MessageStream.presentMessageDetail when opening from a foreground Activity so the host remains in front while the presentation decision is pending.
- Parameters:
context- The Application Context.bundle- Any bundled extras to add to the Intent.message- The Message to display in MessageActivity.- Returns:
An Intent to launch the MessageActivity with a specific Message.
-
intentForMessage
final static Intent intentForMessage(Context context, Bundle bundle, String messageId)
Creates an Intent for correctly displaying a Marigold Message Activity. Use MessageStream.presentMessageDetail when opening from a foreground Activity so the host remains in front while the presentation decision is pending.
- Parameters:
context- The Application Context.bundle- Any bundled extras to add to the Intent.messageId- The Id of the Message to display in MessageActivity.- Returns:
An Intent to launch the MessageActivity with a specific Message.
-
-
-
-