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

TrustedWebActivityDisplayMode

public interface TrustedWebActivityDisplayMode

androidx.browser.trusted.TrustedWebActivityDisplayMode


Represents display mode of a Trusted Web Activity.

Summary

Nested classes

class 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. 

class 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. 

Constants

String KEY_ID

Bundle key for the integer identifying the mode.

Public methods

static TrustedWebActivityDisplayMode fromBundle(Bundle bundle)

Unpacks the object from a Bundle.

abstract Bundle toBundle()

Packs the object into a Bundle.

Constants

KEY_ID

public static final String KEY_ID

Bundle key for the integer identifying the mode.

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

Public methods

fromBundle

public static TrustedWebActivityDisplayMode fromBundle (Bundle bundle)

Unpacks the object from a Bundle.

Parameters
bundle Bundle

Returns
TrustedWebActivityDisplayMode

toBundle

public abstract Bundle toBundle ()

Packs the object into a Bundle.

Returns
Bundle