Package com.banuba.sdk.output
Class FrameLayoutHelper
java.lang.Object
com.banuba.sdk.output.FrameLayoutHelper
Responsible for calculating the size and position of the drawing frame on the surface.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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 sizeframeSize
- size of the drawing framecontentMode
- the logic of frame position calculation- Returns:
- the coordinates of a rectangular drawing area
- See Also:
-