-
public final class RadarTrackingOptions.RadarTrackingOptionsForegroundService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRadarTrackingOptions.RadarTrackingOptionsForegroundService.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringtextprivate final Stringtitleprivate final Integericonprivate final BooleanupdatesOnlyprivate final Stringactivityprivate final Integerimportanceprivate final Integeridprivate final StringchannelNameprivate StringiconStringprivate StringiconColorprivate final StringdeepLink
-
Method Summary
Modifier and Type Method Description final StringgetText()Determines the notification text. final StringgetTitle()Determines the notification title. final IntegergetIcon()Determines the notification icon, like R.drawable.ic_your_icon.final BooleangetUpdatesOnly()Determines when to show the notification. final StringgetActivity()Determines the activity to start when the notification is tapped, like "com.yourapp.MainActivity".final IntegergetImportance()Determines the importance of the notification, one of android.app.NotificationManager.IMPORTANCE_*.final IntegergetId()Determines the id of the notification. final StringgetChannelName()Determines the user-facing channel name, which can be viewed in notification settings for the application. final StringgetIconString()Determines the notification icon, like R.drawable.ic_your_icon.final UnitsetIconString(String iconString)Determines the notification icon, like R.drawable.ic_your_icon.final StringgetIconColor()Determines the color notification icon. final UnitsetIconColor(String iconColor)Determines the color notification icon. final StringgetDeepLink()final JSONObjecttoJson()-
-
Constructor Detail
-
RadarTrackingOptions.RadarTrackingOptionsForegroundService
RadarTrackingOptions.RadarTrackingOptionsForegroundService(String text, String title, Integer icon, Boolean updatesOnly, String activity, Integer importance, Integer id, String channelName, String iconString, String iconColor, String deepLink)
-
-
Method Detail
-
getText
final String getText()
Determines the notification text. Defaults to
"Location tracking started".
-
getIcon
final Integer getIcon()
Determines the notification icon, like
R.drawable.ic_your_icon. Optional, defaults toapplicationContext.applicationInfo.icon.
-
getUpdatesOnly
final Boolean getUpdatesOnly()
Determines when to show the notification. Use
falseto show the notification always, usetrueto show the notification only during location updates. Optional, defaults tofalse.
-
getActivity
final String getActivity()
Determines the activity to start when the notification is tapped, like
"com.yourapp.MainActivity". Optional.
-
getImportance
final Integer getImportance()
Determines the importance of the notification, one of
android.app.NotificationManager.IMPORTANCE_*. Optional, defaults toandroid.app.NotificationManager.IMPORTANCE_DEFAULT.
-
getChannelName
final String getChannelName()
Determines the user-facing channel name, which can be viewed in notification settings for the application. Optional, defaults to
"Location Services".
-
getIconString
final String getIconString()
Determines the notification icon, like
R.drawable.ic_your_icon. Optional, defaults toapplicationContext.applicationInfo.icon.
-
setIconString
final Unit setIconString(String iconString)
Determines the notification icon, like
R.drawable.ic_your_icon. Optional, defaults toapplicationContext.applicationInfo.icon.
-
getIconColor
final String getIconColor()
Determines the color notification icon. Optional.
-
setIconColor
final Unit setIconColor(String iconColor)
Determines the color notification icon. Optional.
-
getDeepLink
final String getDeepLink()
-
toJson
final JSONObject toJson()
-
-
-
-