Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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