Package com.opentok.android
Class VideoUtils.Size
java.lang.Object
com.opentok.android.VideoUtils.Size
- Enclosing class:
VideoUtils
Defines a video resolution to be used when setting the preferred resolution
using the
SubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)
method.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSize()
Size
(int width, int height) Constructs a Size object, to be used when setting the preferred resolution using theSubscriberKit.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
Modifier and TypeMethodDescriptionfinal boolean
equals
(int width, int height) Checks to see if the Size object matches the specified height and width.final boolean
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.
-
Field Details
-
width
public int widthThe width, in pixels. Note that you must call theSubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)
method again to set a new preferred resolution. -
height
public int heightThe height, in pixels. Note that you must call theSubscriberKit.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 theSubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)
method.- Parameters:
width
- The width, in pixels.height
- The height, in pixels.
-
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
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
Checks to see if this Size object has the same dimensions as the Size object passed in.
-