public static void executeGetCancelKey()
        {
            using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("jp.crooz.neptune.NPDevice"))
            {
                for (;;)
                {
                    int num = androidJavaClass.CallStatic <int>("getIsCancelKey", new object[0]);
                    if (num == 1)
                    {
                        break;
                    }
                    if (num == 2)
                    {
                        goto Block_3;
                    }
                }
                goto IL_3F;
Block_3:
                NpDeviceInfoAndroid.cancelBackKey();
IL_3F:
                androidJavaClass.CallStatic("setIsCancelKey", new object[]
                {
                    0
                });
            }
        }
 public static void SetLowMemoryCallBack(string gameObjectName, INpOnLowMemoryListener listener)
 {
     if (listener == null)
     {
         global::Debug.LogError("INpOnLowMemoryListener is Null.");
         return;
     }
     NpDeviceInfoAndroid.SetLowMemoryCallBack(gameObjectName, listener);
 }
        public static void Popup(string title, string message)
        {
            NpDeviceInfoAndroid.Popup(title, message);
            Thread thread = new Thread(delegate()
            {
                NpDeviceInfo.executeGetCancelKey();
            });

            thread.Start();
        }
 public static int GetMemoryUse()
 {
     return(NpDeviceInfoAndroid.GetMemoryUse());
 }
 public static int GetTotalFreeMem()
 {
     return(NpDeviceInfoAndroid.GetSystemAvailMem());
 }
 public static int GetSystemThreshold()
 {
     return(NpDeviceInfoAndroid.GetSystemThreshold());
 }
 public static int GetDalvikHeepMaxMemory()
 {
     return(NpDeviceInfoAndroid.GetDalvikHeepMaxMemory());
 }
 public static int GetHeepUsedMemory()
 {
     return(NpDeviceInfoAndroid.GetHeepUsedMemory());
 }
        public static string GetExternalCacheDir()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetExternalCacheDir());
        }
示例#10
0
 public static bool GetIsSDCardEnable()
 {
     return(NpDeviceInfoAndroid.GetIsSDCardEnable());
 }
示例#11
0
 public static void ReleaseLowMemoryCallBack()
 {
     NpDeviceInfoAndroid.ReleaseLowMemoryCallBack();
 }
示例#12
0
 public static void PushBackKey(string title, string message)
 {
     NpDeviceInfoAndroid.PushBackKey(title, message);
 }
示例#13
0
 public static string GenerateUUID()
 {
     return(NpDeviceInfoAndroid.GetUuid());
 }
示例#14
0
        public static string GetAdid()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetGuid());
        }
示例#15
0
        public static string GetLocaleCountryCode()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetLocaleCountryCode());
        }
示例#16
0
        public static string GetLocaleLanguageAndCountry()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetLocaleLanguageAndCountry());
        }
示例#17
0
        public static string GetPlatform()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetPlatform());
        }
示例#18
0
        public static string GetFilesDir()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetFilesDir());
        }
示例#19
0
        public static string GetDeviceModel()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetDeviceModel());
        }
示例#20
0
 public static float GetFreeStorageSpaceForSDCard()
 {
     return(NpDeviceInfoAndroid.GetFreeStorageSpaceForSDCard());
 }
示例#21
0
        public static string GetOSVersion()
        {
            string empty = string.Empty;

            return(NpDeviceInfoAndroid.GetOSVersion());
        }
示例#22
0
 private static void executeGetCancelKey()
 {
     NpDeviceInfoAndroid.executeGetCancelKey();
 }