WindowPosition.Aligned



Window will be aligned when it will be shown on the screen. alignment defines how the window will be aligned (in the center, or in some of the corners). Window will be aligned in the area that is not occupied by the screen insets (taskbar, OS menubar)

Summary

Public constructors

Aligned(alignment: Alignment)
android

Public functions

WindowPosition.Aligned
copy(alignment: Alignment)

Returns a copy of this Aligned instance optionally overriding the alignment.

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

Public properties

Alignment
android
open Boolean

true if the window position has specific coordinates on the screen

android
open Dp

The horizontal position of the window in Dp.

android
open Dp

The vertical position of the window in Dp.

android

Public constructors

Aligned

Aligned(alignment: Alignment)

Public functions

copy

fun copy(alignment: Alignment = this.alignment): WindowPosition.Aligned

Returns a copy of this Aligned instance optionally overriding the alignment.

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

alignment

val alignmentAlignment

isSpecified

open val isSpecifiedBoolean

true if the window position has specific coordinates on the screen

false if coordinates are not yet determined (position is PlatformDefault or Aligned)

x

open val xDp

The horizontal position of the window in Dp.

y

open val yDp

The vertical position of the window in Dp.