# WindowWidthSizeClass

Artifact: [androidx.window:window-core](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/core/layout/WindowWidthSizeClass.kt+class:androidx.window.core.layout.WindowWidthSizeClass) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/window#1.1.0) Deprecated in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

*** ** * ** ***


```
public final class WindowWidthSizeClass
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

A class to represent the width size buckets for a viewport. The possible values are `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#COMPACT()`, `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#MEDIUM()`, and `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#EXPANDED()`. `https://developer.android.com/reference/androidx/window/core/layout/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 `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#COMPACT()` all the way to an `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#EXPANDED()` size class.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass` | `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#COMPACT()` **This field is deprecated.** WindowWidthSizeClass not be developed further. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass` | `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#EXPANDED()` **This field is deprecated.** WindowWidthSizeClass not be developed further. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass` | `https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#MEDIUM()` **This field is deprecated.** WindowWidthSizeClass not be developed further. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** WindowWidthSizeClass will not be developed further, use WindowSizeClass instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#hashCode())()` **This method is deprecated.** WindowWidthSizeClass will not be developed further, use WindowSizeClass instead. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#toString())()` **This method is deprecated.** WindowWidthSizeClass will not be developed further, use WindowSizeClass instead. |

## Public fields

### COMPACT

```
public static final @NonNull WindowWidthSizeClass COMPACT
```

> [!CAUTION]
> **This field is deprecated.**   
> WindowWidthSizeClass not be developed further.

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

### EXPANDED

```
public static final @NonNull WindowWidthSizeClass EXPANDED
```

> [!CAUTION]
> **This field is deprecated.**   
> WindowWidthSizeClass not be developed further.

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

### MEDIUM

```
public static final @NonNull WindowWidthSizeClass MEDIUM
```

> [!CAUTION]
> **This field is deprecated.**   
> WindowWidthSizeClass not be developed further.

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

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#equals(kotlin.Any))(Object other)
```

> [!CAUTION]
> **This method is deprecated.**   
> WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#hashCode())()
```

> [!CAUTION]
> **This method is deprecated.**   
> WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/window/core/layout/WindowWidthSizeClass#toString())()
```

> [!CAUTION]
> **This method is deprecated.**   
> WindowWidthSizeClass will not be developed further, use WindowSizeClass instead.