public static string GetIdentifierForVendor()
 {
                 #if UNITY_EDITOR
     return(string.Format(CALLING_IN_UNITY_EDITOR, "GetIdentifierForVendor()"));
                 #elif UNITY_IOS
     return(DeviceUtilsiOS.GetIdentifierForVendor());
                 #else
     return(string.Format(UNSUPPORTED_PLATFORM, "GetIdentifierForVendor()"));
                 #endif
 }
Example #2
0
 public static int GetScreenBrightness()
 {
                 #if UNITY_EDITOR
     Debug.LogFormat(CALLING_IN_UNITY_EDITOR, "GetScreenBrightness()");
     return(0);
                 #elif UNITY_IOS
     return(DeviceUtilsiOS.GetScreenBrightness());
                 #elif UNITY_ANDROID
     return(DeviceUtilsAndroid.GetScreenBrightness());
                 #endif
 }
Example #3
0
 public static string GetSystemVersion()
 {
                 #if UNITY_EDITOR
     return(string.Format(CALLING_IN_UNITY_EDITOR, "GetSystemVersion()"));
                 #elif UNITY_IOS
     return(DeviceUtilsiOS.GetSystemVersion());
                 #elif UNITY_ANDROID
     return(DeviceUtilsAndroid.GetSystemVersion());
                 #else
     return(string.Format(UNSUPPORTED_PLATFORM, "GetSystemVersion()"));
                 #endif
 }
Example #4
0
 public static bool SetScreenBrightness(int brightness)
 {
                 #if UNITY_EDITOR
     Debug.LogFormat(CALLING_IN_UNITY_EDITOR, "SetScreenBrightness()");
     return(false);
                 #elif UNITY_IOS
     return(DeviceUtilsiOS.SetScreenBrightness(brightness));
                 #elif UNITY_ANDROID
     return(DeviceUtilsAndroid.SetScreenBrightness(brightness));
                 #else
     Debug.LogFormat(CALLING_IN_UNITY_EDITOR, "SetScreenBrightness()");
     return(false);
                 #endif
 }