Airship.Net
AirshipDotNet.PushNotificationStatusEventArgs Class Reference

Arguments for push notification status update events. More...

Inherits EventArgs.

Public Member Functions

 PushNotificationStatusEventArgs (bool isUserNotificationsEnabled, bool areNotificationsAllowed, bool isPushPrivacyFeatureEnabled, bool isPushTokenRegistered, bool isUserOptedIn, bool isOptIn)
 Creates push notification status event args.
 

Properties

bool IsUserNotificationsEnabled [get]
 Indicatees whether user notifications are enabled via PushManager.
 
bool AreNotificationsAllowed [get]
 Indicates whether notifications are allowed for the application at the system level.
 
bool IsPushPrivacyFeatureEnabled [get]
 Indicates whether Features.Push is enabled via PrivacyManager.
 
bool IsPushTokenRegistered [get]
 Indicates whether the application has successfully registered a push token.
 
bool IsUserOptedIn [get]
 Checks if IsUserNotificationsEnabled, AreNotificationsAllowed, and IsPushPrivacyFeatureEnabled is enabled.
 
bool IsOptIn [get]
 Checks if IsUserOptedIn and IsPushTokenRegistered is enabled.
 

Detailed Description

Arguments for push notification status update events.

Constructor & Destructor Documentation

◆ PushNotificationStatusEventArgs()

AirshipDotNet.PushNotificationStatusEventArgs.PushNotificationStatusEventArgs ( bool isUserNotificationsEnabled,
bool areNotificationsAllowed,
bool isPushPrivacyFeatureEnabled,
bool isPushTokenRegistered,
bool isUserOptedIn,
bool isOptIn )
inline

Creates push notification status event args.

Property Documentation

◆ AreNotificationsAllowed

bool AirshipDotNet.PushNotificationStatusEventArgs.AreNotificationsAllowed
get

Indicates whether notifications are allowed for the application at the system level.

true if notifications are allowed, else false.

◆ IsOptIn

bool AirshipDotNet.PushNotificationStatusEventArgs.IsOptIn
get

Checks if IsUserOptedIn and IsPushTokenRegistered is enabled.

◆ IsPushPrivacyFeatureEnabled

bool AirshipDotNet.PushNotificationStatusEventArgs.IsPushPrivacyFeatureEnabled
get

Indicates whether Features.Push is enabled via PrivacyManager.

true if the push feature is enabled, else false.

◆ IsPushTokenRegistered

bool AirshipDotNet.PushNotificationStatusEventArgs.IsPushTokenRegistered
get

Indicates whether the application has successfully registered a push token.

true if a token was received and registered, else false.

◆ IsUserNotificationsEnabled

bool AirshipDotNet.PushNotificationStatusEventArgs.IsUserNotificationsEnabled
get

Indicatees whether user notifications are enabled via PushManager.

true if user notifications are enabled, else false.

◆ IsUserOptedIn

bool AirshipDotNet.PushNotificationStatusEventArgs.IsUserOptedIn
get

Checks if IsUserNotificationsEnabled, AreNotificationsAllowed, and IsPushPrivacyFeatureEnabled is enabled.