C# Class MediaAppSample.Core.Services.NotificationsService

Inheritance: ServiceBase
Afficher le fichier Open project: Microsoft/TVHelpers

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Initialize ( ) : void

Initialization logic which is called on launch of this application.

Private Methods

Méthode Description
CreateOrUpdateSecondaryTileAsync ( SecondaryTile tile, TileVisualOptions options ) : Task
NotificationsService ( ) : MediaAppSample.Core.Models

Method Details

ClearTile() public méthode

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.
Résultat void

CreateOrUpdateTileAsync() public méthode

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
Résultat Task

DeleteTileAsync() public méthode

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.
Résultat Task

DisplayToast() public méthode

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.
Résultat void

HasTile() public méthode

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.
Résultat bool

Initialize() protected méthode

Initialization logic which is called on launch of this application.
protected Initialize ( ) : void
Résultat void

SignoutAsync() public méthode

On signout of a user, clear tiles, toasts, notifications
public SignoutAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

UpdateAllSecondaryTilesAsync() public méthode

Updates all tiles or any other UI features currently in use on the device.
public UpdateAllSecondaryTilesAsync ( CancellationToken ct ) : System.Threading.Tasks.Task
ct CancellationToken
Résultat System.Threading.Tasks.Task