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