Class Toast
The Toast class provides properties that show simple types of messages
Inheritance
System.Object
Toast
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Tizen.Wearable.CircularUI.Forms
Assembly: Tizen.Wearable.CircularUI.Forms.dll
Syntax
public static class Toast
Examples
Toast.DisplayText("Hello World", 3000)
Toast.DisplayIconText("Hello World", new FileImageSource { File = "icon.jpg" }, 3000)
Methods
DisplayIconText(String, FileImageSource)
It shows simplest icon and text messege in 3 seconds.
Declaration
public static void DisplayIconText(string text, FileImageSource icon)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The body text of the toast. |
FileImageSource | icon | The file path of the toast icon. |
DisplayIconText(String, FileImageSource, Int32)
It shows simplest icon and text messege.
Declaration
public static void DisplayIconText(string text, FileImageSource icon, int duration)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The body text of the toast. |
FileImageSource | icon | The file path of the toast icon. |
System.Int32 | duration | How long to display the text in milliseconds. |
DisplayText(String)
It shows the simplest form of the message in 3000 milliseconds.
Declaration
public static void DisplayText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The body text of the toast. |
DisplayText(String, Int32)
It shows the simplest form of the message in the given duration.
Declaration
public static void DisplayText(string text, int duration)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The body text of the toast. |
System.Int32 | duration | How long to display the text in milliseconds. |