WindowAdaptiveInfo

  • Common/All
  • Android/JVM

This class collects window info that affects adaptation decisions. An adaptive layout is supposed to use the info from this class to decide how the layout is supposed to be adapted.

Summary

Public constructors

WindowAdaptiveInfo(
    windowSizeClass: WindowSizeClass,
    windowPosture: Posture
)

create an instance of WindowAdaptiveInfo

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Posture

Posture of the current window.

Cmn
WindowSizeClass

WindowSizeClass of the current window.

Cmn

Public constructors

WindowAdaptiveInfo

WindowAdaptiveInfo(
    windowSizeClass: WindowSizeClass,
    windowPosture: Posture
)

create an instance of WindowAdaptiveInfo

Parameters
windowSizeClass: WindowSizeClass

WindowSizeClass of the current window.

windowPosture: Posture

Posture of the current window.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

windowPosture

val windowPosturePosture

Posture of the current window.

windowSizeClass

val windowSizeClassWindowSizeClass

WindowSizeClass of the current window.

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jan 15, 2025

An element in an app's AndroidManifest.xml file. Specifies the set of other apps that an app interacts with.

Updated Mar 29, 2023

Section about the Play Install Referrer API to track app installs

Updated May 20, 2024