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()); }
public static bool GetIsSDCardEnable() { return(NpDeviceInfoAndroid.GetIsSDCardEnable()); }
public static void ReleaseLowMemoryCallBack() { NpDeviceInfoAndroid.ReleaseLowMemoryCallBack(); }
public static void PushBackKey(string title, string message) { NpDeviceInfoAndroid.PushBackKey(title, message); }
public static string GenerateUUID() { return(NpDeviceInfoAndroid.GetUuid()); }
public static string GetAdid() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetGuid()); }
public static string GetLocaleCountryCode() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetLocaleCountryCode()); }
public static string GetLocaleLanguageAndCountry() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetLocaleLanguageAndCountry()); }
public static string GetPlatform() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetPlatform()); }
public static string GetFilesDir() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetFilesDir()); }
public static string GetDeviceModel() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetDeviceModel()); }
public static float GetFreeStorageSpaceForSDCard() { return(NpDeviceInfoAndroid.GetFreeStorageSpaceForSDCard()); }
public static string GetOSVersion() { string empty = string.Empty; return(NpDeviceInfoAndroid.GetOSVersion()); }
private static void executeGetCancelKey() { NpDeviceInfoAndroid.executeGetCancelKey(); }