public static class

NotificationArguments.Builder

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

Class Overview

Arguments builder.

Summary

Public Methods
NotificationArguments build()
Builds the notification arguments.
NotificationArguments.Builder setNotificationChannelId(String notificationChannelId)
Sets the notification channel Id.
NotificationArguments.Builder setNotificationId(String notificationTag, int notificationId)
Sets the notification tag and Id.
NotificationArguments.Builder setRequiresLongRunningTask(boolean longRunningTask)
Sets if the notification requires a long running task to generate the notification.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public NotificationArguments build ()

Builds the notification arguments.

Returns
  • The notification arguments.

public NotificationArguments.Builder setNotificationChannelId (String notificationChannelId)

Sets the notification channel Id.

Parameters
notificationChannelId The notification channel Id.
Returns
  • The builder instance.

public NotificationArguments.Builder setNotificationId (String notificationTag, int notificationId)

Sets the notification tag and Id.

Parameters
notificationTag The notification tag.
notificationId The notification Id.
Returns
  • The builder instance.

public NotificationArguments.Builder setRequiresLongRunningTask (boolean longRunningTask)

Sets if the notification requires a long running task to generate the notification. If true, the push message will be scheduled to process at a later time when the app has more background time. If false, the app has approximately 10 seconds to generate the notification.

Apps that make use of this feature are highly encouraged to add RECEIVE_BOOT_COMPLETED so the push message will persist between device reboots.

Parameters
longRunningTask true to require a long running task, otherwise false.
Returns
  • The builder instance.