public class ForegroundServiceConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ForegroundServiceConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
Notification |
getNotification(Context context) |
String |
getNotificationChannelId() |
String |
getNotificationChannelName() |
int |
getNotificationId() |
boolean |
isNeedRecreateChannelId() |
void |
setNeedRecreateChannelId(boolean needRecreateChannelId) |
void |
setNotification(Notification notification) |
void |
setNotificationChannelId(String notificationChannelId) |
void |
setNotificationChannelName(String notificationChannelName) |
void |
setNotificationId(int notificationId) |
String |
toString() |
public int getNotificationId()
public String getNotificationChannelId()
public String getNotificationChannelName()
public Notification getNotification(Context context)
public boolean isNeedRecreateChannelId()
public void setNotificationId(int notificationId)
public void setNotificationChannelId(String notificationChannelId)
public void setNotificationChannelName(String notificationChannelName)
public void setNotification(Notification notification)
public void setNeedRecreateChannelId(boolean needRecreateChannelId)