WindowHeightSizeClass

Added in 1.1.0
Deprecated in 1.4.0-alpha05

public final class WindowHeightSizeClass


A class to represent the height size buckets for a viewport. The possible values are COMPACT, MEDIUM, and EXPANDED. WindowHeightSizeClass should not be used as a proxy for the device type. It is possible to have resizeable windows in different device types. The viewport might change from a COMPACT all the way to an EXPANDED size class.

Summary

Public fields

static final @NonNull WindowHeightSizeClass

This field is deprecated. WindowHeightSizeClass not be developed further.

static final @NonNull WindowHeightSizeClass

This field is deprecated. WindowHeightSizeClass not be developed further.

static final @NonNull WindowHeightSizeClass

This field is deprecated. WindowHeightSizeClass not be developed further.

Public methods

boolean
equals(Object other)
int
@NonNull String

Public fields

COMPACT

Added in 1.4.0-alpha05
Deprecated in 1.4.0-alpha05
public static final @NonNull WindowHeightSizeClass COMPACT

A bucket to represent a compact height, typical for a phone that is in landscape.

EXPANDED

Added in 1.4.0-alpha05
Deprecated in 1.4.0-alpha05
public static final @NonNull WindowHeightSizeClass EXPANDED

A bucket to represent an expanded height window, typical for a large tablet or a desktop form-factor.

MEDIUM

Added in 1.4.0-alpha05
Deprecated in 1.4.0-alpha05
public static final @NonNull WindowHeightSizeClass MEDIUM

A bucket to represent a medium height, typical for a phone in portrait or a tablet.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()