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