Skip to content

Commit becaf3a

Browse files
fix: add Rokt dimensions layout to resolve widget issue
1 parent 9089098 commit becaf3a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

android-core/src/main/kotlin/com/mparticle/rokt/RoktEmbeddedView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import android.util.AttributeSet
55
import android.widget.FrameLayout
66

77
class RoktEmbeddedView : FrameLayout {
8+
var dimensionCallBack: RoktLayoutDimensionCallBack? = null
9+
810
constructor(context: Context) : super(context)
911

1012
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.mparticle.rokt
2+
3+
interface RoktLayoutDimensionCallBack {
4+
fun onHeightChanged(height: Int)
5+
fun onMarginChanged(start: Int, top: Int, end: Int, bottom: Int)
6+
}

0 commit comments

Comments
 (0)