Show / Hide Table of Contents

    Class AndroidNotifier

    Inheritance
    System.Object
    Notifier
    AndroidNotifier
    Inherited Members
    Notifier.PENDING_SURVEY_TEXT_NOTIFICATION_ID
    Notifier.PENDING_SURVEY_BADGE_NOTIFICATION_ID
    Notifier.NOTIFICATION_USER_RESPONSE_ACTION_KEY
    Notifier.NOTIFICATION_USER_RESPONSE_MESSAGE_KEY
    Notifier.OnNotificationUserResponseAsync(String, String)
    Notifier.SendPushNotificationRequestAsync(PushNotificationRequest, CancellationToken)
    Notifier.ProcessReceivedPushNotificationAsync(PushNotification, CancellationToken)
    Notifier.DeletePushNotificationRequestAsync(Guid, Protocol, CancellationToken)
    Notifier.TestHealthAsync(CancellationToken)
    Notifier.ClearPushNotificationRequestBacklogAsync(CancellationToken)
    Namespace: Sensus.Android.Notifications
    Assembly: SensusAndroid.dll
    Syntax
    public class AndroidNotifier : Notifier

    Constructors

    AndroidNotifier()

    Declaration
    public AndroidNotifier()

    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
    Notifier.CancelNotification(String)

    CreateNotificationBuilder(AndroidNotifier.SensusNotificationChannel)

    Declaration
    public Notification.Builder CreateNotificationBuilder(AndroidNotifier.SensusNotificationChannel channel)
    Parameters
    Type Name Description
    AndroidNotifier.SensusNotificationChannel channel
    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
    Notifier.IssueNotificationAsync(String, String, String, Boolean, Protocol, Nullable<Int32>, NotificationUserResponseAction, String)

    OnDestroy()

    Declaration
    public void OnDestroy()

    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()
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX