Package com.banuba.sdk.output
Class FrameLayoutHelper
- java.lang.Object
-
- com.banuba.sdk.output.FrameLayoutHelper
-
public final class FrameLayoutHelper extends java.lang.Object
Responsible for calculating the size and position of the drawing frame on the surface.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 sizeframeSize
- size of the drawing framecontentMode
- the logic of frame position calculation- Returns:
- the coordinates of a rectangular drawing area
- See Also:
ContentMode
-
-