Package es.situm.sdk.location
Class ForegroundServiceNotificationOptions.Builder
java.lang.Object
es.situm.sdk.location.ForegroundServiceNotificationOptions.Builder
- Enclosing class:
- ForegroundServiceNotificationOptions
Builder constructor that allows to configure all the
ForegroundServiceNotificationOptions parameters.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Set the message of the Foreground Service Notification.showStopAction(boolean showStopAction) Decide whether to show or not a button in the Foreground Service Notification that will allow the user to stop positioning.stopActionText(String stopActionText) Set the text of the stop positioning action.Set the action performed when tapping the Situm Foreground Service Notification.Set the title of the Foreground Service Notification.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
title
Set the title of the Foreground Service Notification.- Parameters:
title- Title- Returns:
- Builder
-
message
Set the message of the Foreground Service Notification.- Parameters:
message- Message- Returns:
- Builder
-
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
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
-