Esempio n. 1
0
 public void setServerTime(long millisTime)
 {
     if (nativeTimeManager == null)
     {
         nativeTimeManager = new AndroidJavaObject("com.bowhead.hank.utils.TimeManager");
     }
     GuLog.Debug("millisTime:" + millisTime);
     nativeTimeManager.Call("setServerTime", AndroidContextHolder.GetAndroidContext(), millisTime);
 }
Esempio n. 2
0
        public void setTimeZone(string timeZone)
        {
            if (nativeTimeManager == null)
            {
                nativeTimeManager = new AndroidJavaObject("com.bowhead.hank.utils.TimeManager");
            }

            nativeTimeManager.Call("setTimeZone", AndroidContextHolder.GetAndroidContext(), timeZone);
        }
Esempio n. 3
0
        public void init()
        {
            if (isInit)
            {
                return;
            }

            AndroidJavaObject context = AndroidContextHolder.GetAndroidContext();

            nativeFlurryUtils.CallStatic("init", context);
            isInit = true;
        }
        public void jumpToTestFacotry()
        {
            AndroidJavaObject context = AndroidContextHolder.GetAndroidContext();

            context.Call("jumpToAppByPackage", "com.bowhead.darla");
        }
Esempio n. 5
0
        public static void getCanShowMacId(GetMacValue mGetMacValue)
        {
#if UNITY_EDITOR
            mGetMacValue("02:00:00:00:00:00");
#else
            if (nativeWifiUtils == null)
            {
                nativeWifiUtils = new AndroidJavaObject("com.bowhead.hank.ble.WifiUtils", AndroidContextHolder.GetAndroidContext());
            }

            GetWifiMacCallBack callBack = new GetWifiMacCallBack();
            callBack.setCallBack((mac) => {
                Loom.QueueOnMainThread(() =>
                {
                    mGetMacValue(mac);
                });
            });

            nativeWifiUtils.Call("getShowWifiMac", callBack);
#endif
        }
Esempio n. 6
0
        public static void reboot()
        {
            AndroidJavaObject context = AndroidContextHolder.GetAndroidContext();

            context.Call("reboot");
        }