O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

VideoSize

open class VideoSize : VersionedParcelable
kotlin.Any
   ↳ androidx.media2.common.VideoSize

Immutable class for describing video size.

Summary

Public constructors
<init>(@IntRange(0) width: Int, @IntRange(0) height: Int)

Creates a new immutable VideoSize instance.

Public methods
open Boolean
equals(@Nullable other: Any?)

Checks if this video size is equal to another video size.

open Int

Returns the height of the video.

open Int

Returns the width of the video.

open Int

open String

Return the video size represented as a string with the format "WxH"

Public constructors

<init>

VideoSize(
    @IntRange(0) width: Int,
    @IntRange(0) height: Int)

Creates a new immutable VideoSize instance.

Parameters
width Int: The width of the video
height Int: The height of the video

Public methods

equals

open fun equals(@Nullable other: Any?): Boolean

Checks if this video size is equal to another video size.

Two video sizes are equal if and only if both their widths and heights are equal.

A video size object is never equal to any other type of object.

Return
Boolean true if the objects were equal, false otherwise

getHeight

@IntRange(0) open fun getHeight(): Int

Returns the height of the video.

getWidth

@IntRange(0) open fun getWidth(): Int

Returns the width of the video.

hashCode

open fun hashCode(): Int

toString

@NonNull open fun toString(): String

Return the video size represented as a string with the format "WxH"

Return
String string representation of the video size