//Granify Android SDK/com.granifyinc.granifysdk.models/SliderMargins

SliderMargins

class SliderMargins(val left: Int, val top: Int, val right: Int, val bottom: Int) : Parcelable

Represents a collection of margins that dictate where a Granify campaign slider can be displayed.

To ensure proper display, the combined values of the left and right margins should not be greater than the screen width. Similarly, the combined values of the top and bottom margins should not be greater than the screen height.

Parameters

androidJvm

   
left Distance in pixels from the left side of the screen that a slider should not occupy.
top Distance in pixels from the top of the screen that a slider should not occupy.
right Distance in pixels from the right side of the screen that a slider should not occupy.
bottom Distance in pixels from the bottom of the screen that a slider should not occupy.

Constructors

   
SliderMargins [androidJvm]
constructor(parcel: Parcel)constructor(left: Int, top: Int, right: Int, bottom: Int)

Properties

Name Summary
bottom [androidJvm]
val bottom: Int
left [androidJvm]
val left: Int
right [androidJvm]
val right: Int
top [androidJvm]
val top: Int