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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSize()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 SummaryModifier and TypeMethodDescriptionfinal booleanequals(int width, int height) Checks to see if the Size object matches the specified height and width.final booleanChecks to see if this Size object has the same dimensions as the Size object passed in.final voidset(int width, int height) Changes the dimensions of the Size object.final voidset(VideoUtils.Size size) Changes the dimensions of the Size object to match the dimensions of an existing Size object.
- 
Field Details- 
widthpublic int widthThe width, in pixels. Note that you must call theSubscriberKit.setPreferredResolution(VideoUtils.Size preferredResolution)method again to set a new preferred resolution.
- 
heightpublic 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- 
Sizepublic Size()
- 
Sizepublic 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.
 
- 
SizeConstructs a new Size object, based on the dimensions of an existing Size object.- Parameters:
- size- The Size object to be duplicated.
 
 
- 
- 
Method Details- 
setpublic 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.
 
- 
setChanges 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.
 
- 
equalspublic 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.
 
- 
equalsChecks to see if this Size object has the same dimensions as the Size object passed in.
 
-