ClientHint

enum ClientHint : ProtocolMessageEnum
Specifies supported client hints.
Protobuf enum elide.page.Context.ClientHint

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
`Device-Memory` rating/estimate.
DEVICE_MEMORY = 5;
Link copied to clipboard
Down-link speed estimate.
DOWNLINK = 4;
Link copied to clipboard
val DPR_VALUE: Int = 1
Device Pixel Ratio.
DPR = 1;
Link copied to clipboard
val ECT_VALUE: Int = 2
Effective Connection Type.
ECT = 2;
Link copied to clipboard
val RTT_VALUE: Int = 3
Round Trip Time.
RTT = 3;
Link copied to clipboard
`Save-Data` flag/feature.
SAVE_DATA = 6;
Link copied to clipboard
An unknown client hint type.
UNKNOWN_CLIENT_HINT = 0;
Link copied to clipboard
Describes the width of the browser viewport.
VIEWPORT_WIDTH = 8;
Link copied to clipboard
val WIDTH_VALUE: Int = 7
Describes the width of a requested resource.
WIDTH = 7;

Functions

Link copied to clipboard
open fun forNumber(value: Int): Context.ClientHint
Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<Context.ClientHint>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): Context.ClientHint
open fun valueOf(value: Int): Context.ClientHint

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.