Package com.adapty.ui
Class AdaptyPaywallInsets
-
- All Implemented Interfaces:
public final class AdaptyPaywallInsets
-
-
Field Summary
Fields Modifier and Type Field Description public final static AdaptyPaywallInsetsNONEpublic final static AdaptyPaywallInsetsUNSPECIFIEDprivate final Integerstartprivate final Integertopprivate final Integerendprivate final Integerbottom
-
Method Summary
Modifier and Type Method Description final IntegergetStart()Additional left margin in pixels for LTR and right margin for RTL layouts final IntegergetTop()Additional top margin in pixels. final IntegergetEnd()Additional right margin in pixels for LTR and left margin for RTL layouts final IntegergetBottom()Additional bottom margin in pixels. Booleanequals(Object other)IntegerhashCode()StringtoString()final static AdaptyPaywallInsetsof(Integer start, Integer top, Integer end, Integer bottom)final static AdaptyPaywallInsetsof(Integer all)final static AdaptyPaywallInsetsvertical(Integer top, Integer bottom)final static AdaptyPaywallInsetshorizontal(Integer start, Integer end)-
-
Method Detail
-
getStart
final Integer getStart()
Additional left margin in pixels for LTR and right margin for RTL layouts
-
getTop
final Integer getTop()
Additional top margin in pixels. Useful when the status bar overlaps the paywall screen
-
getEnd
final Integer getEnd()
Additional right margin in pixels for LTR and left margin for RTL layouts
-
getBottom
final Integer getBottom()
Additional bottom margin in pixels. Useful when the navigation bar overlaps the paywall screen
-
of
final static AdaptyPaywallInsets of(Integer start, Integer top, Integer end, Integer bottom)
- Parameters:
start- Additional left margin in pixels for LTR and right margin for RTL layoutstop- Additional top margin in pixels.end- Additional right margin in pixels for LTR and left margin for RTL layoutsbottom- Additional bottom margin in pixels.
-
of
final static AdaptyPaywallInsets of(Integer all)
- Parameters:
all- Additional margins in pixels
-
vertical
final static AdaptyPaywallInsets vertical(Integer top, Integer bottom)
- Parameters:
top- Additional top margin in pixels.bottom- Additional bottom margin in pixels.
-
horizontal
final static AdaptyPaywallInsets horizontal(Integer start, Integer end)
- Parameters:
start- Additional left margin in pixels for LTR and right margin for RTL layoutsend- Additional right margin in pixels for LTR and left margin for RTL layouts
-
-
-
-