TrustedWebActivityDisplayMode


interface TrustedWebActivityDisplayMode

Known direct subclasses
TrustedWebActivityDisplayMode.DefaultMode

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.

TrustedWebActivityDisplayMode.ImmersiveMode

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


Represents display mode of a Trusted Web Activity.

Summary

Nested types

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.

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

const String!
KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID"

Bundle key for the integer identifying the mode.

Public functions

java-static TrustedWebActivityDisplayMode
fromBundle(bundle: Bundle)

Unpacks the object from a Bundle.

Bundle

Packs the object into a Bundle.

Constants

KEY_ID

Added in 1.2.0
const val KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID": String!

Bundle key for the integer identifying the mode.

Public functions

fromBundle

Added in 1.2.0
java-static fun fromBundle(bundle: Bundle): TrustedWebActivityDisplayMode

Unpacks the object from a Bundle.

toBundle

Added in 1.2.0
fun toBundle(): Bundle

Packs the object into a Bundle.