Class FrameLayoutHelper

java.lang.Object
com.banuba.sdk.output.FrameLayoutHelper

public final class FrameLayoutHelper extends Object
Responsible for calculating the size and position of the drawing frame on the surface.
  • Method Details

    • calculateFrameLayout

      public static android.graphics.Rect calculateFrameLayout(android.util.Size surfaceSize, android.util.Size frameSize, ContentMode contentMode)
      Calculates the coordinates of a rectangular drawing area according to the selected logic.
      Parameters:
      surfaceSize - drawing surface size
      frameSize - size of the drawing frame
      contentMode - the logic of frame position calculation
      Returns:
      the coordinates of a rectangular drawing area
      See Also: