Airship.Net
AirshipDotNet.IAirshipPush Interface Reference

Airship Push interface. More...

Public Member Functions

Task< bool > IsUserNotificationsEnabled ()
 Checks if user notifications are enabled.
Task SetUserNotificationsEnabled (bool enabled)
 Enables or disables user notifications.
Task< bool > IsOptedIn ()
 Checks if notifications are opted in.
Task< PushNotificationStatusGetPushNotificationStatus ()
 Gets the push notification status.
Task ResetBadge ()
 Resets the badge count.
Task< bool > EnableUserNotifications (EnableUserPushNotificationsArgs? args=null)
 Enables user notifications with optional fallback behavior.

Properties

bool UserNotificationsEnabled [get, set]
 Gets or sets whether user notifications are enabled.

Detailed Description

Airship Push interface.

Member Function Documentation

◆ EnableUserNotifications()

Task< bool > AirshipDotNet.IAirshipPush.EnableUserNotifications ( EnableUserPushNotificationsArgs? args = null)

Enables user notifications with optional fallback behavior.

Parameters
argsOptional arguments for enabling notifications.
Returns
True if notifications were enabled, false otherwise.

◆ GetPushNotificationStatus()

Task< PushNotificationStatus > AirshipDotNet.IAirshipPush.GetPushNotificationStatus ( )

Gets the push notification status.

Returns
The current push notification status.

◆ IsOptedIn()

Task< bool > AirshipDotNet.IAirshipPush.IsOptedIn ( )

Checks if notifications are opted in.

Returns
True if opted in, false otherwise.

◆ IsUserNotificationsEnabled()

Task< bool > AirshipDotNet.IAirshipPush.IsUserNotificationsEnabled ( )

Checks if user notifications are enabled.

Returns
True if user notifications are enabled, false otherwise.

◆ ResetBadge()

Task AirshipDotNet.IAirshipPush.ResetBadge ( )

Resets the badge count.

Returns
A task that completes when the badge is reset.

◆ SetUserNotificationsEnabled()

Task AirshipDotNet.IAirshipPush.SetUserNotificationsEnabled ( bool enabled)

Enables or disables user notifications.

Parameters
enabledTrue to enable, false to disable.

Property Documentation

◆ UserNotificationsEnabled

bool AirshipDotNet.IAirshipPush.UserNotificationsEnabled
getset

Gets or sets whether user notifications are enabled.