Class GravityPositionProviderAdapter

java.lang.Object
com.banuba.sdk.entity.GravityPositionProviderAdapter
All Implemented Interfaces:
PositionProvider

public class GravityPositionProviderAdapter extends Object implements PositionProvider
Provide position for object based on gravity. Does not support RTL gravity.
  • Constructor Details

    • GravityPositionProviderAdapter

      public GravityPositionProviderAdapter(SizeProvider sizeProvider, int gravity)
  • Method Details

    • provide

      public android.graphics.PointF provide(@NonNull android.util.Size viewportSize)
      Specified by:
      provide in interface PositionProvider