Class NotificationService
- java.lang.Object
-
- io.heraldprox.herald.sensor.service.NotificationService
-
public class NotificationService extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description android.app.Notification
getForegroundServiceNotification()
int
getForegroundServiceNotificationId()
static NotificationService
shared(android.app.Application application)
void
startForegroundService(android.app.Notification notification, int notificationId)
void
stopForegroundService()
-
-
-
Method Detail
-
shared
@NonNull public static NotificationService shared(@NonNull android.app.Application application)
-
startForegroundService
public void startForegroundService(@NonNull android.app.Notification notification, int notificationId)
-
stopForegroundService
public void stopForegroundService()
-
getForegroundServiceNotification
public android.app.Notification getForegroundServiceNotification()
-
getForegroundServiceNotificationId
public int getForegroundServiceNotificationId()
-
-