Package com.geouniq.android
Class GeoUniq.TrackingProfile.Builder
java.lang.Object
com.geouniq.android.GeoUniq.TrackingProfile.Builder
- Enclosing class:
- GeoUniq.TrackingProfile
Utility class to set the attributes and obtain an instance of the enclosing
GeoUniq.TrackingProfile class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Allows to get aGeoUniq.TrackingProfileinstance.setGpsUsage(GeoUniq.TrackingProfile.GpsUsage gpsUsage) Sets the value for the GPS-usage attribute, as defined byGeoUniq.TrackingProfile.GpsUsage.setSpeedAdaptivity(GeoUniq.TrackingProfile.SpeedAdaptivity speedAdaptivity) Sets the value for the Speed-adaptive attribute, as defined byGeoUniq.TrackingProfile.SpeedAdaptivity.
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
create
Allows to get aGeoUniq.TrackingProfileinstance.
Each attribute of the returned instance will have the value set by this
Builderor the default value if not set (seeGeoUniq.TrackingProfile.GpsUsage,GeoUniq.TrackingProfile.SpeedAdaptivity).
Attributes' values can be set with set methods (see
setGpsUsage(GeoUniq.TrackingProfile.GpsUsage)andsetSpeedAdaptivity(GeoUniq.TrackingProfile.SpeedAdaptivity)).- Returns:
- the
GeoUniq.TrackingProfileinstance that has been built
-
setGpsUsage
Sets the value for the GPS-usage attribute, as defined byGeoUniq.TrackingProfile.GpsUsage.- Parameters:
gpsUsage- theGpsUsagevalue for the GPS-usage attribute- Returns:
- This
Builderobject to allow for chaining of calls to set methods
-
setSpeedAdaptivity
public GeoUniq.TrackingProfile.Builder setSpeedAdaptivity(GeoUniq.TrackingProfile.SpeedAdaptivity speedAdaptivity) Sets the value for the Speed-adaptive attribute, as defined byGeoUniq.TrackingProfile.SpeedAdaptivity.- Parameters:
speedAdaptivity- theSpeedAdaptivenessvalue for the Speed-adaptive attribute- Returns:
- This
Builderobject to allow for chaining of calls to set methods
-