# GetTemplate(ToastTemplate)

> Get template XML for toast notification.

## Definition

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

```csharp
public static string GetTemplate(ToastTemplate templ)
```

### Parameters

**** (\[ToastTemplate]\(/engine/6000.0/script-reference/unityengine/wsa/toasttemplate)): A template identifier.

### Returns

| Type                                                           | Description                                                                          |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | string, which is an empty XML document to be filled and used for toast notification. |

### Remarks

This can be used to retrieve a template for one of the predefined styles for toasts.
