Package com.opentok.android
Class VideoUtils.Size
- java.lang.Object
 - 
- com.opentok.android.VideoUtils.Size
 
 
- 
- Enclosing class:
 - VideoUtils
 
public static class VideoUtils.Size extends java.lang.ObjectDefines a video resolution to be used when setting the preferred resolution using theSubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)method. 
- 
- 
Constructor Summary
Constructors Constructor Description Size()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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(int width, int height)Checks to see if the Size object matches the specified height and width.booleanequals(java.lang.Object obj)Checks to see if this Size object has the same dimensions as the Size object passed in.voidset(int width, int height)Changes the dimensions of the Size object.voidset(VideoUtils.Size size)Changes the dimensions of the Size object to match the dimensions of an existing Size object. 
 - 
 
- 
- 
Field Detail
- 
width
public int width
The width, in pixels. Note that you must call theSubscriberKit.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 theSubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)method again to set a new preferred resolution. 
 - 
 
- 
Constructor Detail
- 
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 hieght, 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 Detail
- 
set
public final void set(int width, int height)Changes the dimensions of the Size object.- Parameters:
 width- The width, in pixels.height- The hieght, 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 hieght, in pixels.
 
- 
equals
public final boolean equals(java.lang.Object obj)
Checks to see if this Size object has the same dimensions as the Size object passed in.- Overrides:
 equalsin classjava.lang.Object- Parameters:
 obj- An object to test for equality.
 
 - 
 
 -