public static final class Configuration.Builder extends Object
Constructor and Description |
---|
Builder(Context context)
Initializes a new instance of
Configuration.Builder . |
Modifier and Type | Method and Description |
---|---|
Configuration.Builder |
appId(String value)
Sets the new application identifier.
|
Configuration.Builder |
appKey(String value)
Sets the new application key.
|
Configuration.Builder |
appName(String value)
Sets the new application name value.
|
Configuration |
build()
Creates a new configuration.
|
Configuration.Builder |
calendarDefaultNotificationTime(int notificationTimeMinutes)
Set the default notification time for calendar events.
|
Configuration.Builder |
calendarNotificationsEnabled(boolean enabled)
Set whether or not calendar events will have push notifications enabled.
|
Configuration.Builder |
calendarSyncEnabled(boolean enabled)
Set whether or not calendar synchronization should be enabled.
|
Configuration.Builder |
locationLearningEnabled(boolean enabled)
Sets a value that indicates whether location learning should be enabled.
|
Configuration.Builder |
monitorUserLocation(boolean enabled)
Set whether or not the user's location should be monitored.
|
Configuration.Builder |
tripRecordingEnabled(boolean enabled)
Set whether or not trip recording should be enabled.
|
public Builder(Context context)
Configuration.Builder
.context
- Current context.public Configuration.Builder appKey(String value)
value
- New application key value.public Configuration.Builder appId(String value)
value
- New application ID.public Configuration.Builder appName(String value)
value
- New application name.public Configuration.Builder calendarSyncEnabled(boolean enabled)
Manifest.permission.READ_CALENDAR
permission granted before calling InrixCore.initialize(Context, Configuration)
.enabled
- true
if it should be enabled, false
otherwise.ItineraryManager.getItinerary(ItineraryManager.GetItineraryOptions, ItineraryManager.IGetItineraryResponseListener)
,
CalendarTrip
public Configuration.Builder calendarNotificationsEnabled(boolean enabled)
enabled
- true
if it should be enabled by default, false
otherwise.public Configuration.Builder calendarDefaultNotificationTime(int notificationTimeMinutes)
notificationTimeMinutes
- Notification time in minutes. Must be greater or equal 0 and less or
equal 60.Configuration.Builder.calendarNotificationsEnabled(boolean)
public Configuration.Builder tripRecordingEnabled(boolean enabled)
enabled
- true
if it should be enabled, false
otherwise.ItineraryManager.getItinerary(ItineraryManager.GetItineraryOptions, ItineraryManager.IGetItineraryResponseListener)
,
LearnedTrip
,
LocationsManager.getLearnedLocations(LocationsManager.GetLearnedLocationsOptions, LocationsManager.IGetLearnedLocationsListener)
,
LearnedLocation
public Configuration.Builder locationLearningEnabled(boolean enabled)
Configuration.Builder.tripRecordingEnabled(boolean)
that only learns
frequent locations.enabled
- true
if it should be enabled, false
otherwise.Configuration.Builder.tripRecordingEnabled(boolean)
,
LocationsManager.getLearnedLocations(LocationsManager.GetLearnedLocationsOptions, LocationsManager.IGetLearnedLocationsListener)
,
LearnedLocation
public Configuration.Builder monitorUserLocation(boolean enabled)
enabled
- true
if it should be enabled, false
otherwise.public Configuration build()
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.