The Android Developer Challenge is back! Submit your idea before December 2.

TrustedWebActivityDisplayMode

interface TrustedWebActivityDisplayMode
androidx.browser.trusted.TrustedWebActivityDisplayMode

Represents display mode of a Trusted Web Activity.

Summary

Nested classes

open

Default mode: the system UI (status bar, navigation bar) is shown, and the browser toolbar is hidden while the user is on a verified origin.

open

Immersive mode: both the browser controls and the system UI (status bar, navigation bar) is hidden while the user is on a verified origin.

Constants

static String

Bundle key for the integer identifying the mode.

Public methods

open static TrustedWebActivityDisplayMode
fromBundle(@NonNull bundle: Bundle)

Unpacks the object from a Bundle.

abstract Bundle

Packs the object into a Bundle.

Constants

KEY_ID

static val KEY_ID: String

Bundle key for the integer identifying the mode.

Value: "androidx.browser.trusted.displaymode.KEY_ID"

Public methods

fromBundle

@NonNull open static fun fromBundle(@NonNull bundle: Bundle): TrustedWebActivityDisplayMode

Unpacks the object from a Bundle.

toBundle

@NonNull abstract fun toBundle(): Bundle

Packs the object into a Bundle.