SizeKt

public final class SizeKt


Summary

Public methods

static final @RequiresApi(value = 21) int

Returns "width", the first component of this Size.

static final @RequiresApi(value = 21) float

Returns "width", the first component of this SizeF.

static final float

Returns "width", the first component of this SizeFCompat.

static final @RequiresApi(value = 21) int

Returns "height", the second component of this Size.

static final @RequiresApi(value = 21) float

Returns "height", the second component of this SizeF.

static final float

Returns "height", the second component of this SizeFCompat.

Public methods

SizeKt.component1

@RequiresApi(value = 21)
public static final int SizeKt.component1(Size receiver)

Returns "width", the first component of this Size.

This method allows to use destructuring declarations when working with sizes, for example:

val (w, h) = mySize

SizeKt.component1

@RequiresApi(value = 21)
public static final float SizeKt.component1(SizeF receiver)

Returns "width", the first component of this SizeF.

This method allows to use destructuring declarations when working with sizes, for example:

val (w, h) = mySize

SizeKt.component1

public static final float SizeKt.component1(SizeFCompat receiver)

Returns "width", the first component of this SizeFCompat.

This method allows to use destructuring declarations when working with sizes, for example:

val (w, h) = mySize

SizeKt.component2

@RequiresApi(value = 21)
public static final int SizeKt.component2(Size receiver)

Returns "height", the second component of this Size.

This method allows to use destructuring declarations when working with sizes, for example:

val (w, h) = mySize

SizeKt.component2

@RequiresApi(value = 21)
public static final float SizeKt.component2(SizeF receiver)

Returns "height", the second compon