java.lang.Object

com.opentok.android.VideoUtils.Size

Enclosing class: : VideoUtils


public static class VideoUtils.Size extends Object

Defines a video resolution to be used when setting the preferred resolution using the SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution) method.

Field Summary

Fields

Modifier and Type

Field

Description

int

height

The height, in pixels.

int

width

The width, in pixels.

Constructor Summary

Constructors

Constructor

Description

Size()

Size(int width, int height)

Constructs a Size object, to be used when setting the preferred resolution using the SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution) method.

Size(VideoUtils.Size size)

Constructs a new Size object, based on the dimensions of an existing Size object.

Method Summary

All MethodsInstance MethodsConcrete Methods

Modifier and Type

Method

Description

final boolean

equals(int width, int height)

Checks to see if the Size object matches the specified height and width.

final boolean

equals(Object obj)

Checks to see if this Size object has the same dimensions as the Size object passed in.

final void

set(int width, int height)

Changes the dimensions of the Size object.

final void

set(VideoUtils.Size size)

Changes the dimensions of the Size object to match the dimensions of an existing Size object.

Methods inherited from class java.lang.Object

clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

width

public int width

The width, in pixels. Note that you must call the SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution) method again to set a new preferred resolution.

height

public int height

The height, in pixels. Note that you must call the SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution) method again to set a new preferred resolution.

Constructor Details

Size

public Size()

Size

public Size(int width, int height)

Constructs a Size object, to be used when setting the preferred resolution using the SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution) method.

Parameters: : width - The width, in pixels. : height - The height, in pixels.

Size

public Size(VideoUtils.Size size)

Constructs a new Size object, based on the dimensions of an existing Size object.

Parameters: : size - The Size object to be duplicated.

Method Details

set

public final void set(int width, int height)

Changes the dimensions of the Size object.

Parameters: : width - The width, in pixels. : height - The height, in pixels.

set

public final void set(VideoUtils.Size size)

Changes the dimensions of the Size object to match the dimensions of an existing Size object.

Parameters: : size - The Size object to match the dimensions to.

equals

public final boolean equals(int width, int height)

Checks to see if the Size object matches the specified height and width.

Parameters: : width - The width, in pixels. : height - The height, in pixels.

equals

public final boolean equals(Object obj)

Checks to see if this Size object has the same dimensions as the Size object passed in.

Overrides: : equals in class Object

Parameters: : obj - An object to test for equality.