Esempio n. 1
0
		/// <summary>
		/// Shows the toast. A toast is a view containing a quick little message for the user.
		/// </summary>
		/// <param name="_message">The text message in a Toast view.</param>
		/// <param name="_length">Toast view show duration time length.</param>
		public virtual void ShowToast (string _message, eToastMessageLength _length)
		{}
Esempio n. 2
0
 public override void ShowToast(string _message, eToastMessageLength _length)
 {
     DebugUtility.Logger.LogWarning(Constants.kDebugTag, Constants.kAndroidFeature);
 }
Esempio n. 3
0
 public override void ShowToast(string _message, eToastMessageLength _length)
 {
     Plugin.Call(Native.Methods.SHOW_TOAST, _message, _length == eToastMessageLength.SHORT ? "SHORT" : "LONG");
 }
Esempio n. 4
0
 /// <summary>
 /// Shows the toast. A toast is a view containing a quick little message for the user.
 /// </summary>
 /// <param name="_message">The text message in a Toast view.</param>
 /// <param name="_length">Toast view show duration length.</param>
 /// <example>
 /// The following code example demonstrates how to show a short toast message.
 /// <code>
 /// using UnityEngine;
 /// using System.Collections;
 /// using VoxelBusters.NativePlugins;
 ///
 /// public class ExampleClass : MonoBehaviour
 /// {
 ///     public void ShowToastMessage ()
 ///     {
 ///         NPBinding.UI.ShowToast("This is a sample message.", eToastMessageLength.SHORT);
 ///     }
 /// }
 /// </code>
 /// </example>
 /// <remarks>
 /// \note This is an Android only feature. On iOS, this call has no effect.
 /// </remarks>
 public virtual void ShowToast(string _message, eToastMessageLength _length)
 {
 }
		public override void ShowToast (string _message, eToastMessageLength _length)
		{
			Plugin.Call(Native.Methods.SHOW_TOAST, _message, _length == eToastMessageLength.SHORT ? "SHORT" : "LONG");
		}
Esempio n. 6
0
		public override void ShowToast (string _message, eToastMessageLength _length)
		{
			Console.LogWarning(Constants.kDebugTag, Constants.kAndroidFeature);
		}
Esempio n. 7
0
 public override void Reset()
 {
     // Setup properties
     message = null;
     length  = eToastMessageLength.SHORT;
 }