public static class ServiceNotificationConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ServiceNotificationConfig |
build() |
ServiceNotificationConfig.Builder |
setContentIntent(android.app.PendingIntent ignored)
Deprecated.
This method does nothing. It's kept for backward compatibility only.
|
ServiceNotificationConfig.Builder |
setContentText(java.lang.String body) |
ServiceNotificationConfig.Builder |
setContentTitle(java.lang.String title) |
ServiceNotificationConfig.Builder |
setLargeIcon(int bigIconResId) |
ServiceNotificationConfig.Builder |
setSmallIcon(int smallIconResId) |
public ServiceNotificationConfig.Builder setContentTitle(java.lang.String title)
title
- to set. If nothing was set "your-app-name is running" will be used.androidx.core.app.NotificationCompat.Builder#setContentTitle(CharSequence)
public ServiceNotificationConfig.Builder setContentText(java.lang.String body)
body
- to set. If nothing was set "your-app-name is running" will be used.androidx.core.app.NotificationCompat.Builder#setContentText(CharSequence)
public ServiceNotificationConfig.Builder setSmallIcon(@DrawableRes int smallIconResId)
smallIconResId
- to appear in minimized style notification.androidx.core.app.NotificationCompat.Builder#setSmallIcon(int)
public ServiceNotificationConfig.Builder setLargeIcon(@DrawableRes int bigIconResId)
bigIconResId
- to appear in minimized style notification.androidx.core.app.NotificationCompat.Builder#setLargeIcon(Bitmap)
public ServiceNotificationConfig.Builder setContentIntent(android.app.PendingIntent ignored)
public ServiceNotificationConfig build()