public static void OnGUI()
    {
        GUILayout.Button("DemoIos", GUILayout.Height(80));
        PluginsDemoGUI.OnGUI();

        if (GUILayout.Button("CrashLogON", GUILayout.Height(80)))
        {
            JAnalyticsBindingIos.CrashLogON();
        }

        if (GUILayout.Button("setLatitude", GUILayout.Height(80)))
        {
            double latitude  = 100.1;
            double longitude = 200.1;
            JAnalyticsBindingIos.SetLatitude(latitude, longitude);
        }
    }
Esempio n. 2
0
    public static void OnGUI()
    {
        GUILayout.Button("DemoAndroid", GUILayout.Height(80));
        PluginsDemoGUI.OnGUI();

        if (GUILayout.Button("initCrashHandler", GUILayout.Height(80)))
        {
            JAnalyticsBindingAndroid.InitCrashHandler();
        }


        if (GUILayout.Button("stopCrashHandler", GUILayout.Height(80)))
        {
            JAnalyticsBindingAndroid.StopCrashHandler();
        }

        if (GUILayout.Button("setChannel", GUILayout.Height(80)))
        {
            //string channel = null;
            string channel = "test_channel";
            JAnalyticsBindingAndroid.SetChannel(channel);
        }
    }