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 @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.

Public methods

SizeKt.component1

@RequiresApi(value = "21")
@NonNull
public static final @RequiresApi(value = "21") int SizeKt.component1(@NonNull 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")
@NonNull
public static final @RequiresApi(value = "21") float SizeKt.component1(@NonNull 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.component2

@RequiresApi(value = "21")
@NonNull
public static final @RequiresApi(value = "21") int SizeKt.component2(@NonNull 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")
@NonNull
public static final @RequiresApi(value = "21") float SizeKt.component2(@NonNull SizeF receiver)

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

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

val (w, h) = mySize