Package com.geouniq.android
Class GeoUniq.TrackingProfile.Builder
- java.lang.Object
-
- com.geouniq.android.GeoUniq.TrackingProfile.Builder
-
- Enclosing class:
- GeoUniq.TrackingProfile
public static class GeoUniq.TrackingProfile.Builder extends java.lang.ObjectUtility class to set the attributes and obtain an instance of the enclosingGeoUniq.TrackingProfileclass.
-
-
Constructor Summary
Constructors Constructor Description Builder()Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoUniq.TrackingProfilecreate()Allows to get aGeoUniq.TrackingProfileinstance.GeoUniq.TrackingProfile.BuildersetGpsUsage(GeoUniq.TrackingProfile.GpsUsage gpsUsage)Sets the value for the GPS-usage attribute, as defined byGeoUniq.TrackingProfile.GpsUsage.GeoUniq.TrackingProfile.BuildersetSpeedAdaptivity(GeoUniq.TrackingProfile.SpeedAdaptivity speedAdaptivity)Sets the value for the Speed-adaptive attribute, as defined byGeoUniq.TrackingProfile.SpeedAdaptivity.
-
-
-
Method Detail
-
create
public GeoUniq.TrackingProfile 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
public GeoUniq.TrackingProfile.Builder setGpsUsage(GeoUniq.TrackingProfile.GpsUsage gpsUsage)
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
-
-