diff --git a/android-core/src/main/kotlin/com/mparticle/rokt/RoktEmbeddedView.kt b/android-core/src/main/kotlin/com/mparticle/rokt/RoktEmbeddedView.kt index 590969b67..d50cbbb21 100644 --- a/android-core/src/main/kotlin/com/mparticle/rokt/RoktEmbeddedView.kt +++ b/android-core/src/main/kotlin/com/mparticle/rokt/RoktEmbeddedView.kt @@ -5,6 +5,8 @@ import android.util.AttributeSet import android.widget.FrameLayout class RoktEmbeddedView : FrameLayout { + var dimensionCallBack: RoktLayoutDimensionCallBack? = null + constructor(context: Context) : super(context) constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) diff --git a/android-core/src/main/kotlin/com/mparticle/rokt/RoktLayoutDimensionCallBack.kt b/android-core/src/main/kotlin/com/mparticle/rokt/RoktLayoutDimensionCallBack.kt new file mode 100644 index 000000000..e8a65ce71 --- /dev/null +++ b/android-core/src/main/kotlin/com/mparticle/rokt/RoktLayoutDimensionCallBack.kt @@ -0,0 +1,6 @@ +package com.mparticle.rokt + +interface RoktLayoutDimensionCallBack { + fun onHeightChanged(height: Int) + fun onMarginChanged(start: Int, top: Int, end: Int, bottom: Int) +} \ No newline at end of file