Package es.situm.sdk.location
Class ForegroundServiceNotificationOptions.Builder
- java.lang.Object
-
- es.situm.sdk.location.ForegroundServiceNotificationOptions.Builder
-
- Enclosing class:
- ForegroundServiceNotificationOptions
public static class ForegroundServiceNotificationOptions.Builder extends java.lang.Object
Builder constructor that allows to configure all theForegroundServiceNotificationOptions
parameters.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForegroundServiceNotificationOptions
build()
ForegroundServiceNotificationOptions.Builder
message(java.lang.String message)
Set the message of the Foreground Service Notification.ForegroundServiceNotificationOptions.Builder
showStopAction(boolean showStopAction)
Decide whether to show or not a button in the Foreground Service Notification that will allow the user to stop positioning.ForegroundServiceNotificationOptions.Builder
stopActionText(java.lang.String stopActionText)
Set the text of the stop positioning action.ForegroundServiceNotificationOptions.Builder
tapAction(ForegroundServiceNotificationOptions.TapAction action)
Set the action performed when tapping the Situm Foreground Service Notification.ForegroundServiceNotificationOptions.Builder
title(java.lang.String title)
Set the title of the Foreground Service Notification.
-
-
-
Method Detail
-
title
public ForegroundServiceNotificationOptions.Builder title(java.lang.String title)
Set the title of the Foreground Service Notification.- Parameters:
title
- Title- Returns:
- Builder
-
message
public ForegroundServiceNotificationOptions.Builder message(java.lang.String message)
Set the message of the Foreground Service Notification.- Parameters:
message
- Message- Returns:
- Builder
-
showStopAction
public ForegroundServiceNotificationOptions.Builder showStopAction(boolean showStopAction)
Decide whether to show or not a button in the Foreground Service Notification that will allow the user to stop positioning.- Parameters:
showStopAction
- True or false to show/hide the button. The default value is false.- Returns:
- Builder
- See Also:
stopActionText(String)
-
stopActionText
public ForegroundServiceNotificationOptions.Builder stopActionText(java.lang.String stopActionText)
Set the text of the stop positioning action.- Parameters:
stopActionText
- Text- Returns:
- Builder
-
tapAction
public ForegroundServiceNotificationOptions.Builder tapAction(ForegroundServiceNotificationOptions.TapAction action)
Set the action performed when tapping the Situm Foreground Service Notification.- Parameters:
action
- The preferred tap action.- Returns:
- Builder
-
build
public ForegroundServiceNotificationOptions build()
-
-