public abstract class NotificationConfig
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract java.lang.CharSequence |
getContentText(android.content.Context context)
Returns text for notification body
|
abstract java.lang.CharSequence |
getContentTitle(android.content.Context context)
Returns text for notification title
|
static NotificationConfig |
getInstance()
Returns the singleton instance of this class.
|
abstract int |
getLargeIconBackgroundColor(android.content.Context context)
Returns the color that the large notification icon should be
|
abstract int |
getSmallIcon()
Returns the drawable resource for the notification icon
|
abstract java.lang.CharSequence |
getTickerText(android.content.Context context)
Return ticker text for notification
|
static void |
init(NotificationConfig manager)
Initializes the NotificationConfig singleton.
|
public static void init(NotificationConfig manager)
Application.onCreate()
method.manager
- an implementation of NotificationConfigpublic static NotificationConfig getInstance()
@DrawableRes public abstract int getSmallIcon()
public abstract int getLargeIconBackgroundColor(android.content.Context context)
context
- android contextpublic abstract java.lang.CharSequence getTickerText(android.content.Context context)
context
- android applicationpublic abstract java.lang.CharSequence getContentTitle(android.content.Context context)
context
- android applicationpublic abstract java.lang.CharSequence getContentText(android.content.Context context)
context
- android application