/// <summary> /// Shows a toast message (Android only). /// </summary> /// <param name="message">Message.</param> /// <param name="isLongToast">If set to <c>true</c> use long length toast, otherwise use short length toast.</param> internal static void ShowToast(string message, bool isLongToast = false) { #if UNITY_ANDROID && !UNITY_EDITOR AndroidNativeAlert.ShowToast(message, isLongToast); #else Debug.Log("Toasts are only available on Android devices."); #endif }
/// <summary> /// Shows a toast message (Android only). /// </summary> /// <param name="message">Message.</param> internal static void ShowToast(string message) { AndroidNativeAlert.ShowToast(message); }