private void _profileSetOnce(Dictionary <string, object> dic) { if (dic == null) { return; } string jsonStr = SAUtils.Parse2JsonStr(dic); AndroidJavaObject jsonObject = SAUtils.Parse2JavaJSONObject(jsonStr); apiInstance.Call("profileSetOnce", jsonObject); }
private void _track(string eventName, Dictionary <string, object> dic = null) { AndroidJavaObject jsonObject = null; if (dic != null) { string jsonStr = SAUtils.Parse2JsonStr(dic); jsonObject = SAUtils.Parse2JavaJSONObject(jsonStr); } apiInstance.Call("track", eventName, jsonObject); }
private void _registerSuperProperties(Dictionary <string, object> properties) { AndroidJavaObject jsonObject = null; if (properties != null) { string jsonStr = SAUtils.Parse2JsonStr(properties); jsonObject = SAUtils.Parse2JavaJSONObject(jsonStr); } apiInstance.Call("registerSuperProperties", jsonObject); }
//二期内容 private void _trackInstallation(Dictionary <string, object> properties = null, bool disableCallback = false) { AndroidJavaObject jsonObject = null; if (properties != null) { string jsonStr = SAUtils.Parse2JsonStr(properties); jsonObject = SAUtils.Parse2JavaJSONObject(jsonStr); } apiInstance.Call("trackAppInstall", jsonObject, disableCallback); }
private void _trackTimerEnd(string eventName, Dictionary <string, object> properties) { AndroidJavaObject jsonObject = null; if (properties != null) { string jsonStr = SAUtils.Parse2JsonStr(properties); jsonObject = SAUtils.Parse2JavaJSONObject(jsonStr); } apiInstance.Call("trackTimerEnd", eventName, jsonObject); }