public class

PublicNotificationExtender

extends Object
implements NotificationCompat.Extender
java.lang.Object
   ↳ com.urbanairship.push.notifications.PublicNotificationExtender

Class Overview

Notification builder extender to add the public notification defined by a PushMessage.

Summary

Public Constructors
PublicNotificationExtender(Context context, NotificationArguments arguments)
Default constructor.
Public Methods
NotificationCompat.Builder extend(NotificationCompat.Builder builder)
PublicNotificationExtender setAccentColor(int accentColor)
Sets the accent color.
PublicNotificationExtender setLargeIcon(int largeIcon)
Sets the large icon.
PublicNotificationExtender setSmallIcon(int smallIcon)
Sets the small icon.
[Expand]
Inherited Methods
From class java.lang.Object
From interface androidx.core.app.NotificationCompat.Extender

Public Constructors

public PublicNotificationExtender (Context context, NotificationArguments arguments)

Default constructor.

Parameters
context The application context.
arguments The notification arguments.

Public Methods

public NotificationCompat.Builder extend (NotificationCompat.Builder builder)

public PublicNotificationExtender setAccentColor (int accentColor)

Sets the accent color.

Parameters
accentColor The notification's accent color.
Returns
  • The PublicNotificationExtender to chain calls.

public PublicNotificationExtender setLargeIcon (int largeIcon)

Sets the large icon.

Parameters
largeIcon The large icon.
Returns
  • The PublicNotificationExtender to chain calls.

public PublicNotificationExtender setSmallIcon (int smallIcon)

Sets the small icon.

Parameters
smallIcon The small icon.
Returns
  • The PublicNotificationExtender to chain calls.