TrustedWebActivityDisplayMode

public 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

default static final String
KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID"

Bundle key for the integer identifying the mode.

Public methods

default static @NonNull TrustedWebActivityDisplayMode

Unpacks the object from a Bundle.

abstract @NonNull Bundle

Packs the object into a Bundle.

Constants

KEY_ID

Added in 1.2.0
default static final String KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID"

Bundle key for the integer identifying the mode.

Public methods

fromBundle

Added in 1.2.0
default static @NonNull TrustedWebActivityDisplayMode fromBundle(@NonNull Bundle bundle)

Unpacks the object from a Bundle.

toBundle

Added in 1.2.0
abstract @NonNull Bundle toBundle()

Packs the object into a Bundle.