public class

NotificationArguments

extends Object
java.lang.Object
   ↳ com.urbanairship.push.notifications.NotificationArguments

Class Overview

Arguments used to create a notification in the NotificationProvider.

Summary

Nested Classes
class NotificationArguments.Builder Arguments builder. 
Public Methods
PushMessage getMessage()
Gets the push message.
String getNotificationChannelId()
Gets the notification channel Id.
int getNotificationId()
Gets the Id that will be used to post the notification.
String getNotificationTag()
Gets the tag that will be used to post the notification.
boolean getRequiresLongRunningTask()
Gets the flag indicating the notification requires a long running task.
static NotificationArguments.Builder newBuilder(PushMessage message)
Factory method to create a new builder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public PushMessage getMessage ()

Gets the push message.

Returns
  • The push message.

public String getNotificationChannelId ()

Gets the notification channel Id.

Returns
  • The notification channel Id.

public int getNotificationId ()

Gets the Id that will be used to post the notification.

Returns
  • The notification Id.

public String getNotificationTag ()

Gets the tag that will be used to post the notification.

Returns
  • The notification tag.

public boolean getRequiresLongRunningTask ()

Gets the flag indicating the notification requires a long running task.

Returns
  • true if the notification requires a long running task, otherwise false.

public static NotificationArguments.Builder newBuilder (PushMessage message)

Factory method to create a new builder.

Returns
  • A builder.