Class VideoUtils.Size

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
    The height, in pixels.
    int
    The width, in pixels.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    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.
    Constructs a new Size object, based on the dimensions of an existing Size object.
  • Method Summary

    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
    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
    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

  • 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.