Package com.banuba.sdk.entity
Class GravityPositionProviderAdapter
- java.lang.Object
-
- com.banuba.sdk.entity.GravityPositionProviderAdapter
-
- All Implemented Interfaces:
PositionProvider
public class GravityPositionProviderAdapter extends java.lang.Object implements PositionProvider
Provide position for object based on gravity. Does not support RTL gravity.
-
-
Constructor Summary
Constructors Constructor Description GravityPositionProviderAdapter(SizeProvider sizeProvider, int gravity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.PointF
provide(android.util.Size viewportSize)
-
-
-
Constructor Detail
-
GravityPositionProviderAdapter
public GravityPositionProviderAdapter(SizeProvider sizeProvider, int gravity)
-
-
Method Detail
-
provide
public android.graphics.PointF provide(@NonNull android.util.Size viewportSize)
- Specified by:
provide
in interfacePositionProvider
-
-