# Create

> Create toast notification.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.WSA](/engine/6000.0/script-reference/unityengine/wsa.md)
* **Assembly:** UnityEngine.CoreModule

## Create(string)

Create toast notification.

```csharp
public static Toast Create(string xml)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): XML document with tile data.

### Returns

| Type                                                              | Description                                                                                     |
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Toast](/engine/6000.0/script-reference/unityengine/wsa/toast.md) | A toast object for further work with created notification or null, if creation of toast failed. |

### Remarks

Toast notification is created by providing XML document with it's data. A second variant is a convenience method to show simple toast with text, optionally with image on it.

## Create(string, string)

Create toast notification.

```csharp
public static Toast Create(string image, string text)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Uri to image to show on a toast, can be empty, in that case text-only notification will be shown.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A text to display on a toast notification.

### Returns

| Type                                                              | Description                                                                                     |
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [Toast](/engine/6000.0/script-reference/unityengine/wsa/toast.md) | A toast object for further work with created notification or null, if creation of toast failed. |

### Remarks

Toast notification is created by providing XML document with it's data. A second variant is a convenience method to show simple toast with text, optionally with image on it.
