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);
        }
    }
 // Use this for initialization
 public static void Start(GameObject gameObject)
 {
     PluginsDemoGUI.Start(gameObject);
     JAnalyticsBinding.SetDebugMode(true);
 }
 public static void CallBack(string json)
 {
     Debug.Log("IosCallBack----json-----" + json);
     PluginsDemoGUI.CallBack(json);
 }
 // Update is called once per frame
 public static void Update()
 {
     PluginsDemoGUI.Update();
 }