VideoSize
open class VideoSize : VersionedParcelable
kotlin.Any | |
↳ | androidx.media2.common.VideoSize |
Immutable class for describing video size.
Summary
Public constructors | |
---|---|
Creates a new immutable VideoSize instance. |
Public methods | |
---|---|
open Boolean |
Checks if this video size is equal to another video size. |
open Int |
Returns the height of the video. |
open Int |
getWidth() Returns the width of the video. |
open Int |
hashCode() |
open String |
toString() Return the video size represented as a string with the format |
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 |
hashCode
open fun hashCode(): Int