C# Class Telegram.Notifications.NotificationManager

ファイルを表示 Open project: naphaso/kilogram

Public Methods

Method Description
RegisterPushNotifications ( ) : System.Threading.Tasks.Task
UnregisterPushNotifications ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
HttpNotificationReceived ( object sender, HttpNotificationEventArgs httpNotificationEventArgs ) : void
PushChannel_ChannelUriUpdated ( object sender, NotificationChannelUriEventArgs e ) : void

Event handler for when the push channel Uri is updated.

PushChannel_ErrorOccurred ( object sender, NotificationChannelErrorEventArgs e ) : void

Event handler for when a push notification error occurs.

PushChannel_ShellToastNotificationReceived ( object sender, NotificationEventArgs e ) : void

Event handler for when a toast notification arrives while your application is running. The toast will not display if your application is running so you must add this event handler if you want to do something with the toast notification.

Method Details

RegisterPushNotifications() public method

public RegisterPushNotifications ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

UnregisterPushNotifications() public method

public UnregisterPushNotifications ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task