MCPcopy Create free account
hub / github.com/antvis/F2Native / nChartBridgeUpdateThemeToken

Function nChartBridgeUpdateThemeToken

core/android/F2NativeJNI.cpp:810–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808
809
810static void
811nChartBridgeUpdateThemeToken(JNIEnv* env, jclass clazz, jlong bridgeHandle,
812 jobject jReplaceColors, jboolean isDark){
813 F2_LOG_I("#F2NativeJNI", "%s", "#F2ChartBridge_nChartBridgeUpdateThemeToken ");
814 xg::bridge::ChartBridge *bridge = reinterpret_cast<xg::bridge::ChartBridge *>(bridgeHandle);
815
816 if (jReplaceColors) {
817 std::map<int,int> replace = JavaMapIntIntToMap(env,jReplaceColors);
818 bridge->SetDarkModeInfo((bool)isDark,replace);
819 }
820}
821
822static const JNINativeMethod native_chart_bridge_methods[] = {{
823 .name = "nCreate",

Callers

nothing calls this directly

Calls 2

JavaMapIntIntToMapFunction · 0.85
SetDarkModeInfoMethod · 0.45

Tested by

no test coverage detected