C# Класс MediaAppSample.Core.Services.NotificationsService

Наследование: ServiceBase
Показать файл Открыть проект

Открытые методы

Метод Описание
ClearTile ( IModel model ) : void

Clears a tile associated to the model specified. How it determines which tile(s) to clear is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.

CreateOrUpdateTileAsync ( IModel model ) : Task

Creates or updates one or multiple live tiles on the executing platform. How it is manifests itself is determined by the class that implements this interface. If the platform does not support this feature, then the implementation should do nothing.

DeleteTileAsync ( IModel model ) : Task

Deletes a tile associated to the model specified. How it determines which tile to delete is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.

DisplayToast ( IModel model ) : void

Displays a toasts associated to the tile specified. How it determines what should be displayed is determined by the class implementing this interface. If the platform does not support toasts, then the implementation should do nothing.

HasTile ( IModel model ) : bool

Checks to see if a tile exists associated the the model specified. How it determines which tile to check against is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.

SignoutAsync ( ) : System.Threading.Tasks.Task

On signout of a user, clear tiles, toasts, notifications

UpdateAllSecondaryTilesAsync ( CancellationToken ct ) : System.Threading.Tasks.Task

Updates all tiles or any other UI features currently in use on the device.

Защищенные методы

Метод Описание
Initialize ( ) : void

Initialization logic which is called on launch of this application.

Приватные методы

Метод Описание
CreateOrUpdateSecondaryTileAsync ( SecondaryTile tile, TileVisualOptions options ) : Task
NotificationsService ( ) : MediaAppSample.Core.Models

Описание методов

ClearTile() публичный Метод

Clears a tile associated to the model specified. How it determines which tile(s) to clear is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.
public ClearTile ( IModel model ) : void
model IModel Model which contains the data necessary to find the tile to clear.
Результат void

CreateOrUpdateTileAsync() публичный Метод

Creates or updates one or multiple live tiles on the executing platform. How it is manifests itself is determined by the class that implements this interface. If the platform does not support this feature, then the implementation should do nothing.
public CreateOrUpdateTileAsync ( IModel model ) : Task
model IModel Model which contains the data necessary to create a new tile or to find the tile to update
Результат Task

DeleteTileAsync() публичный Метод

Deletes a tile associated to the model specified. How it determines which tile to delete is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.
public DeleteTileAsync ( IModel model ) : Task
model IModel Model which contains the data necessary to find the tile to delete.
Результат Task

DisplayToast() публичный Метод

Displays a toasts associated to the tile specified. How it determines what should be displayed is determined by the class implementing this interface. If the platform does not support toasts, then the implementation should do nothing.
public DisplayToast ( IModel model ) : void
model IModel Model which contains the data needed for the toast.
Результат void

HasTile() публичный Метод

Checks to see if a tile exists associated the the model specified. How it determines which tile to check against is determined by the class implementing this interface. If the platform does not support tiles, then the implementation should do nothing.
public HasTile ( IModel model ) : bool
model IModel Model which contains the data to find the tile.
Результат bool

Initialize() защищенный Метод

Initialization logic which is called on launch of this application.
protected Initialize ( ) : void
Результат void

SignoutAsync() публичный Метод

On signout of a user, clear tiles, toasts, notifications
public SignoutAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

UpdateAllSecondaryTilesAsync() публичный Метод

Updates all tiles or any other UI features currently in use on the device.
public UpdateAllSecondaryTilesAsync ( CancellationToken ct ) : System.Threading.Tasks.Task
ct CancellationToken
Результат System.Threading.Tasks.Task