-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathNativeMPRoktSpec.kt
More file actions
35 lines (29 loc) · 926 Bytes
/
Copy pathNativeMPRoktSpec.kt
File metadata and controls
35 lines (29 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.mparticle.react
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReadableMap
abstract class NativeMPRoktSpec(
reactContext: ReactApplicationContext,
) : ReactContextBaseJavaModule(reactContext) {
companion object {
private const val MODULE_NAME = "RNMPRokt"
}
override fun getName(): String = MODULE_NAME
abstract fun selectPlacements(
identifier: String,
attributes: ReadableMap?,
placeholders: ReadableMap?,
roktConfig: ReadableMap?,
fontFilesMap: ReadableMap?,
)
abstract fun selectShoppableAds(
identifier: String,
attributes: ReadableMap?,
roktConfig: ReadableMap?,
)
abstract fun purchaseFinalized(
placementId: String,
catalogItemId: String,
success: Boolean,
)
}