C# 클래스 MediaAppSample.Core.Services.NotificationsService

상속: ServiceBase
파일 보기 프로젝트 열기: Microsoft/TVHelpers

공개 메소드들

메소드 설명
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