void Show() { var local = RateLocalization.Get(); if (local == null) { return; } #if UNITY_ANDROID NativeAndroid.ShowRateDialog( local.title, local.message, local.yes, local.later, local.no ); #elif UNITY_IPHONE NativeIOS.ShowRateDialog( local.title, local.message, local.yes, local.later, local.no ); #endif }
public string GetRegistrationID() { string registrationID = string.Empty; #if UNITY_EDITOR registrationID = string.Empty; #elif UNITY_ANDROID registrationID = NativeAndroid.Call <string>("getRegistrationID"); Debug.Log("Android registrationID:" + registrationID); #elif UNITY_IPHONE registrationID = Notificator._registrationID(); Debug.Log("IOS registrationID:" + registrationID); #endif return(registrationID); }
static int IsChargingAndoird() { return(NativeAndroid.Call <int>("IsCharging")); }