public class

StyleNotificationExtender

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

Class Overview

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

Summary

Public Constructors
StyleNotificationExtender(Context context, PushMessage message)
Default constructor.
Public Methods
NotificationCompat.Builder extend(NotificationCompat.Builder builder)
StyleNotificationExtender setDefaultStyle(NotificationCompat.Style defaultStyle)
Sets the default style if PushMessage does not define a style, or it fails to create the style.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.support.v4.app.NotificationCompat.Extender

Public Constructors

public StyleNotificationExtender (Context context, PushMessage message)

Default constructor.

Parameters
context The application context.
message The push message.

Public Methods

public NotificationCompat.Builder extend (NotificationCompat.Builder builder)

public StyleNotificationExtender setDefaultStyle (NotificationCompat.Style defaultStyle)

Sets the default style if PushMessage does not define a style, or it fails to create the style.

Parameters
defaultStyle The default style.
Returns
  • The StyleNotificationExtender to chain calls.