Class AndroidNotifier
Inheritance
System.Object
AndroidNotifier
Assembly: SensusAndroid.dll
Syntax
public class AndroidNotifier : Notifier
Constructors
AndroidNotifier()
Declaration
Fields
FOREGROUND_SERVICE_NOTIFICATION_ACTION_PAUSE
Declaration
public const string FOREGROUND_SERVICE_NOTIFICATION_ACTION_PAUSE = "NOTIFICATION-ACTION-PAUSE"
Field Value
Type |
Description |
System.String |
|
FOREGROUND_SERVICE_NOTIFICATION_ACTION_RESUME
Declaration
public const string FOREGROUND_SERVICE_NOTIFICATION_ACTION_RESUME = "NOTIFICATION-ACTION-RESUME"
Field Value
Type |
Description |
System.String |
|
FOREGROUND_SERVICE_NOTIFICATION_ID
Declaration
public const int FOREGROUND_SERVICE_NOTIFICATION_ID = 1
Field Value
Type |
Description |
System.Int32 |
|
Methods
BuildForegroundServiceNotification()
Declaration
public Notification BuildForegroundServiceNotification()
Returns
Type |
Description |
Android.App.Notification |
|
CancelNotification(String)
Declaration
public override void CancelNotification(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Overrides
CreateNotificationBuilder(AndroidNotifier.SensusNotificationChannel)
Declaration
public Notification.Builder CreateNotificationBuilder(AndroidNotifier.SensusNotificationChannel channel)
Parameters
Returns
Type |
Description |
Android.App.Notification.Builder |
|
IssueNotificationAsync(String, String, String, Boolean, Protocol, Nullable<Int32>, NotificationUserResponseAction, String)
Declaration
public override Task IssueNotificationAsync(string title, string message, string id, bool alertUser, Protocol protocol, Nullable<int> badgeNumber, NotificationUserResponseAction userResponseAction, string userResponseMessage)
Parameters
Type |
Name |
Description |
System.String |
title |
|
System.String |
message |
|
System.String |
id |
|
System.Boolean |
alertUser |
|
Protocol |
protocol |
|
System.Nullable<System.Int32> |
badgeNumber |
|
NotificationUserResponseAction |
userResponseAction |
|
System.String |
userResponseMessage |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
OnDestroy()
Declaration
ReissueForegroundServiceNotification()
Declaration
public void ReissueForegroundServiceNotification()
UpdateForegroundServiceNotificationBuilder()
Updates the foreground service notification builder, so that it reflects the enrollment status and participation level of the user.
Declaration
public void UpdateForegroundServiceNotificationBuilder()