|
|
@@ -2,6 +2,7 @@ package com.atmob.keyboard_android.util.bridge
|
|
|
|
|
|
import com.atmob.keyboard_android.constant.FlutterHostConstants
|
|
|
import com.atmob.keyboard_android.enums.FlutterMethod
|
|
|
+import com.atmob.keyboard_android.enums.StatisticsPoint
|
|
|
import com.atmob.keyboard_android.enums.host.HostMainTab
|
|
|
import com.atmob.keyboard_android.util.FlutterEngineHolder
|
|
|
import com.atmob.keyboard_android.util.FlutterPageLaunchUtil
|
|
|
@@ -250,15 +251,15 @@ object FlutterBridgeManager : IBridgeApi {
|
|
|
}
|
|
|
|
|
|
override fun reportEvent(
|
|
|
- eventId: String,
|
|
|
+ statisticsPoint: StatisticsPoint,
|
|
|
params: Map<String, Any>?,
|
|
|
- onSuccess: (EmptyResp) -> Unit,
|
|
|
- onFail: (errorCode: Int, errorMsg: String) -> Unit
|
|
|
+ onSuccess: ((EmptyResp) -> Unit)?,
|
|
|
+ onFail: ((errorCode: Int, errorMsg: String) -> Unit)?
|
|
|
) {
|
|
|
mFlutterMethodCaller.callMethod(
|
|
|
FlutterMethod.REPORT_EVENT.methodName,
|
|
|
args = mapOf(
|
|
|
- "eventId" to eventId,
|
|
|
+ "eventId" to statisticsPoint.eventId,
|
|
|
"params" to params,
|
|
|
),
|
|
|
modelClazz = EmptyResp::class.java,
|