WindowWidthSizeClass

Added in 1.1.0
Deprecated in 1.4.0

public final class WindowWidthSizeClass


A class to represent the width size buckets for a viewport. The possible values are COMPACT, MEDIUM, and EXPANDED. WindowWidthSizeClass 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 WindowWidthSizeClass

This field is deprecated. WindowWidthSizeClass not be developed further.

static final @NonNull WindowWidthSizeClass

This field is deprecated. WindowWidthSizeClass not be developed further.

static final @NonNull WindowWidthSizeClass

This field is deprecated. WindowWidthSizeClass not be developed further.

Public methods

boolean
equals(Object other)

This method is deprecated. WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

int

This method is deprecated. WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

@NonNull String

This method is deprecated. WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

Public fields

COMPACT

Added in 1.4.0
Deprecated in 1.4.0
public static final @NonNull WindowWidthSizeClass COMPACT

A bucket to represent a compact width window, typical for a phone in portrait.

EXPANDED

Added in 1.4.0
Deprecated in 1.4.0
public static final @NonNull WindowWidthSizeClass EXPANDED

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

MEDIUM

Added in 1.4.0
Deprecated in 1.4.0
public static final @NonNull WindowWidthSizeClass MEDIUM

A bucket to represent a medium width window, typical for a phone in landscape or a tablet.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()