Airship.Net
AirshipDotNet.PushReceivedEventArgs Class Reference

Event args for push notifications received. More...

Inherits EventArgs.

Public Member Functions

 PushReceivedEventArgs (IDictionary< string, object?> payload, string? alert, string? title, bool isBackground)

Properties

IDictionary< string, object?> Payload [get]
 Gets the raw notification payload (APNs userInfo on iOS, push extras on Android).
string? Alert [get]
 Gets the alert text, or null if not present.
string? Title [get]
 Gets the notification title, or null if not present.
bool IsBackground [get]
 True when this was a silent/background push that did not post a notification.

Detailed Description

Event args for push notifications received.

Constructor & Destructor Documentation

◆ PushReceivedEventArgs()

AirshipDotNet.PushReceivedEventArgs.PushReceivedEventArgs ( IDictionary< string, object?> payload,
string? alert,
string? title,
bool isBackground )
inline

Property Documentation

◆ Alert

string? AirshipDotNet.PushReceivedEventArgs.Alert
get

Gets the alert text, or null if not present.

◆ IsBackground

bool AirshipDotNet.PushReceivedEventArgs.IsBackground
get

True when this was a silent/background push that did not post a notification.

◆ Payload

IDictionary<string, object?> AirshipDotNet.PushReceivedEventArgs.Payload
get

Gets the raw notification payload (APNs userInfo on iOS, push extras on Android).

◆ Title

string? AirshipDotNet.PushReceivedEventArgs.Title
get

Gets the notification title, or null if not present.