AndroidNativeCore.Toast
Description
A toast is android native small popup. It only fills the amount of
space required for the message and the current activity remains
visible and interactive. Toasts automatically disappear after a
timeout.
This class invoke Android native toast message.
Summary:
Constants | |
---|---|
int |
Toast.LENGTH_SHORT
Show the view or text notification for a long period of time. |
int |
Toast.LENGTH_LONG
Show the view or text notification for a short period of time. |
Public methods | |
---|---|
void |
make(string message,
int duration) This method invoke android native toast message, It take two parameters first string parameter is for message what do you want to show and second one int for duration of toast, Use only above ConstValues. |
Example
using AndroidNativeCore;
public void ShowAlert()
{
Toast.make("Hellow Android Native Core",Toast.LENGTH_SHORT)
}