INotificationManager Interface

Namespace
Shiny.Notifications
Implementing Types
graph BT Type["INotificationManager"] class Type type-node Implementing0["TestNotificationManager"]-.->Type click Implementing0 "/api/Shiny.Testing.Notifications/TestNotificationManager"

Syntax

public interface INotificationManager

Methods

Name Value Summary
Cancel(int) Task
Cancels a specified notification
Clear() Task
Clears all notifications
GetBadge() Task<int>
Gets the current badge
GetPending() Task<IEnumerable<Notification>>
Gets all pending notifications
RequestAccess() Task<AccessState>
Requests/ensures appropriate platform permissions where necessary
Send(Notification) Task
Send a notification
SetBadge(int) Task
Sets the current badge

Extension Methods

Name Value Summary
GetPropertyInfo<INotificationManager, TRet>(Expression<Func<INotificationManager, TRet>>) PropertyInfo
Reflects out property information based on the expression value
ReflectCopyTo(object) void
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectGet<INotificationManager, TReturn>(Expression<Func<INotificationManager, TReturn>>) TReturn
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
RequestAccessAndSend(Notification) Task<NotificationResult>
RequestAccessAndSend(string, string) Task<NotificationResult>
DO NOT use this in your delegates or background tasks - it should only be used in the foreground where permission dialogs can be presented
Send(string, string) Task
GitHub