# CreateOrUpdateSecondary

> Creates new or updates existing secondary tile.

## Definition

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

## CreateOrUpdateSecondary(SecondaryTileData)

Creates new or updates existing secondary tile.

```csharp
public static Tile CreateOrUpdateSecondary(SecondaryTileData data)
```

### Parameters

**** (\[SecondaryTileData]\(/engine/6000.6/script-reference/unityengine/wsa/secondarytiledata)): The data used to create or update secondary tile.

### Returns

| Type                                                            | Description                                                       |
| --------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) | New Tile object, that can be used for further work with the tile. |

### Remarks

TileId is required to be set in data, displayName is required when creating and can not be updated. When used to create new tile, this function displays a request on the screen. Tile will be created if user agrees to pin it to start screen.

## CreateOrUpdateSecondary(SecondaryTileData, Vector2)

Creates new or updates existing secondary tile.

```csharp
public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Vector2 pos)
```

### Parameters

**** (\[SecondaryTileData]\(/engine/6000.6/script-reference/unityengine/wsa/secondarytiledata)): The data used to create or update secondary tile.**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The coordinates for a request to create new tile.

### Returns

| Type                                                            | Description                                                       |
| --------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) | New Tile object, that can be used for further work with the tile. |

### Remarks

TileId is required to be set in data, displayName is required when creating and can not be updated. When used to create new tile, this function displays a request on the screen. Tile will be created if user agrees to pin it to start screen.

## CreateOrUpdateSecondary(SecondaryTileData, Rect)

Creates new or updates existing secondary tile.

```csharp
public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Rect area)
```

### Parameters

**** (\[SecondaryTileData]\(/engine/6000.6/script-reference/unityengine/wsa/secondarytiledata)): The data used to create or update secondary tile.**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): The area on the screen above which the request to create new tile will be displayed.

### Returns

| Type                                                            | Description                                                       |
| --------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) | New Tile object, that can be used for further work with the tile. |

### Remarks

TileId is required to be set in data, displayName is required when creating and can not be updated. When used to create new tile, this function displays a request on the screen. Tile will be created if user agrees to pin it to start screen.
