public static class ForegroundServiceConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ForegroundServiceConfig |
build() |
ForegroundServiceConfig.Builder |
needRecreateChannelId(boolean needRecreateChannelId) |
ForegroundServiceConfig.Builder |
notification(android.app.Notification notification) |
ForegroundServiceConfig.Builder |
notificationChannelId(java.lang.String notificationChannelId) |
ForegroundServiceConfig.Builder |
notificationChannelName(java.lang.String notificationChannelName) |
ForegroundServiceConfig.Builder |
notificationId(int notificationId) |
public ForegroundServiceConfig.Builder notificationId(int notificationId)
public ForegroundServiceConfig.Builder notificationChannelId(java.lang.String notificationChannelId)
public ForegroundServiceConfig.Builder notificationChannelName(java.lang.String notificationChannelName)
public ForegroundServiceConfig.Builder notification(android.app.Notification notification)
public ForegroundServiceConfig.Builder needRecreateChannelId(boolean needRecreateChannelId)
public ForegroundServiceConfig build()