@Generated(value="Generated by the protocol buffer compiler") public enum DisplayMode extends java.lang.Enum<DisplayMode> implements com.google.protobuf.ProtocolMessageEnum
display-mode
setting.
This feature is particularly useful for Progressive Web Apps (PWAs) to tailor their appearance based on the display mode. Unlike in Chrome, it does not affect the browser control, and only changes the corresponding CSS setting.
Enum Constant and Description |
---|
BROWSER
Represents "display-mode: browser".
|
DISPLAY_MODE_UNSPECIFIED
Reserved value.
|
FULLSCREEN
Represents "display-mode: fullscreen".
|
MINIMAL_UI
Represents "display-mode: standalone".
|
STANDALONE
Represents "display-mode: minimal-ui".
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BROWSER_VALUE
Represents "display-mode: browser".
|
static int |
DISPLAY_MODE_UNSPECIFIED_VALUE
Reserved value.
|
static int |
FULLSCREEN_VALUE
Represents "display-mode: fullscreen".
|
static int |
MINIMAL_UI_VALUE
Represents "display-mode: standalone".
|
static int |
STANDALONE_VALUE
Represents "display-mode: minimal-ui".
|
Modifier and Type | Method and Description |
---|---|
static DisplayMode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DisplayMode> |
internalGetValueMap() |
static DisplayMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DisplayMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DisplayMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DisplayMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayMode DISPLAY_MODE_UNSPECIFIED
public static final DisplayMode BROWSER
public static final DisplayMode MINIMAL_UI
public static final DisplayMode STANDALONE
public static final DisplayMode FULLSCREEN
public static final DisplayMode UNRECOGNIZED
public static final int DISPLAY_MODE_UNSPECIFIED_VALUE
public static final int BROWSER_VALUE
public static final int MINIMAL_UI_VALUE
public static final int STANDALONE_VALUE
public static final int FULLSCREEN_VALUE
public static DisplayMode[] values()
for (DisplayMode c : DisplayMode.values()) System.out.println(c);
public static DisplayMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static DisplayMode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DisplayMode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DisplayMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DisplayMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)