Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateOrUpdateSecondary

Creates new or updates existing secondary tile.
Read time 2 minutesLast updated 10 days ago

Definition

CreateOrUpdateSecondary(SecondaryTileData)

Creates new or updates existing secondary tile.
public static Tile CreateOrUpdateSecondary(SecondaryTileData data)

Parameters

The data used to create or update secondary tile.

Returns

Type

Description

TileNew 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.
public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Vector2 pos)

Parameters

The data used to create or update secondary tile.

The coordinates for a request to create new tile.

Returns

Type

Description

TileNew 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.
public static Tile CreateOrUpdateSecondary(SecondaryTileData data, Rect area)

Parameters

The data used to create or update secondary tile.

area

The area on the screen above which the request to create new tile will be displayed.

Returns

Type

Description

TileNew 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.