@@ -9,6 +9,8 @@ import android.os.Build
9
9
import com.mparticle.BuildConfig
10
10
import com.mparticle.MParticle
11
11
import com.mparticle.MParticle.IdentityType
12
+ import com.mparticle.MpRoktEventCallback
13
+ import com.mparticle.UnloadReasons
12
14
import com.mparticle.WrapperSdk
13
15
import com.mparticle.WrapperSdkVersion
14
16
import com.mparticle.commerce.CommerceEvent
@@ -35,7 +37,7 @@ import java.math.BigDecimal
35
37
*/
36
38
class RoktKit : KitIntegration (), CommerceListener, IdentityListener, RoktListener, Rokt.RoktCallback {
37
39
private var applicationContext: Context ? = null
38
- private var mpRoktEventCallback: MParticle . MpRoktEventCallback ? = null
40
+ private var mpRoktEventCallback: MpRoktEventCallback ? = null
39
41
override fun getName (): String = NAME
40
42
41
43
override fun getInstance (): RoktKit = this
@@ -140,7 +142,7 @@ class RoktKit : KitIntegration(), CommerceListener, IdentityListener, RoktListen
140
142
override fun execute (
141
143
viewName : String ,
142
144
attributes : Map <String , String >,
143
- mpRoktEventCallback : MParticle . MpRoktEventCallback ? ,
145
+ mpRoktEventCallback : MpRoktEventCallback ? ,
144
146
placeHolders : MutableMap <String , WeakReference <RoktEmbeddedView >>? ,
145
147
fontTypefaces : MutableMap <String , WeakReference <Typeface >>? ,
146
148
filterUser : FilteredMParticleUser ? ,
@@ -310,14 +312,14 @@ class RoktKit : KitIntegration(), CommerceListener, IdentityListener, RoktListen
310
312
override fun onUnload (reason : Rokt .UnloadReasons ) : Unit {
311
313
mpRoktEventCallback?.onUnload(
312
314
when (reason) {
313
- Rokt .UnloadReasons .NO_OFFERS -> MParticle . UnloadReasons .NO_OFFERS
314
- Rokt .UnloadReasons .FINISHED -> MParticle . UnloadReasons .FINISHED
315
- Rokt .UnloadReasons .TIMEOUT -> MParticle . UnloadReasons .TIMEOUT
316
- Rokt .UnloadReasons .NETWORK_ERROR -> MParticle . UnloadReasons .NETWORK_ERROR
317
- Rokt .UnloadReasons .NO_WIDGET -> MParticle . UnloadReasons .NO_WIDGET
318
- Rokt .UnloadReasons .INIT_FAILED -> MParticle . UnloadReasons .INIT_FAILED
319
- Rokt .UnloadReasons .UNKNOWN_PLACEHOLDER -> MParticle . UnloadReasons .UNKNOWN_PLACEHOLDER
320
- Rokt .UnloadReasons .UNKNOWN -> MParticle . UnloadReasons .UNKNOWN
315
+ Rokt .UnloadReasons .NO_OFFERS -> UnloadReasons .NO_OFFERS
316
+ Rokt .UnloadReasons .FINISHED -> UnloadReasons .FINISHED
317
+ Rokt .UnloadReasons .TIMEOUT -> UnloadReasons .TIMEOUT
318
+ Rokt .UnloadReasons .NETWORK_ERROR -> UnloadReasons .NETWORK_ERROR
319
+ Rokt .UnloadReasons .NO_WIDGET -> UnloadReasons .NO_WIDGET
320
+ Rokt .UnloadReasons .INIT_FAILED -> UnloadReasons .INIT_FAILED
321
+ Rokt .UnloadReasons .UNKNOWN_PLACEHOLDER -> UnloadReasons .UNKNOWN_PLACEHOLDER
322
+ Rokt .UnloadReasons .UNKNOWN -> UnloadReasons .UNKNOWN
321
323
}
322
324
)
323
325
}
0 commit comments