Package com.indooratlas.android.sdk
Class IALocation.Builder
- java.lang.Object
-
- com.indooratlas.android.sdk.IALocation.Builder
-
- Enclosing class:
- IALocation
public static class IALocation.Builder extends Object
Builder to configureIALocation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IALocationbuild()Create aIALocationfrom thisIALocation.Builder.IALocation.BuilderwithAccuracy(float accuracy)Configures IALocation with givenaccuracyin meters.IALocation.BuilderwithAltitude(double altitude)Configures IALocation with givenaltitude, in meters.IALocation.BuilderwithBearing(float bearing)Configures IALocation with givenbearingin degrees.IALocation.BuilderwithExtras(Bundle extras)Use extras from givenBundle.IALocation.BuilderwithFloorCertainty(float certainty)Configures IALocation with given floorcertaintyIALocation.BuilderwithFloorLevel(int level)Configures IALocation with given floorlevelIALocation.BuilderwithIntExtra(String key, int value)Adds an extra argument.IALocation.BuilderwithLatitude(double latitude)Configures IALocation with givenlatitude.IALocation.BuilderwithLocation(Location location)Populates IALocation with values fromlocation.IALocation.BuilderwithLongExtra(String key, long value)Adds an extra argument.IALocation.BuilderwithLongitude(double longitude)Configures IALocation with givenlongitude.IALocation.BuilderwithRegion(IARegion region)Configures IALocation to belong to givenIARegion.IALocation.BuilderwithTime(long millis)Configures time of the fix in UTC time, millis since January 1, 1970.
-
-
-
Constructor Detail
-
Builder
public Builder(String provider)
-
Builder
public Builder()
Preferred constructor when creating client sideIALocationobjects.
-
-
Method Detail
-
withLocation
public IALocation.Builder withLocation(Location location)
Populates IALocation with values fromlocation.
-
withRegion
public IALocation.Builder withRegion(IARegion region)
Configures IALocation to belong to givenIARegion.
-
withLatitude
public IALocation.Builder withLatitude(double latitude)
Configures IALocation with givenlatitude.
-
withTime
public IALocation.Builder withTime(long millis)
Configures time of the fix in UTC time, millis since January 1, 1970.
-
withLongitude
public IALocation.Builder withLongitude(double longitude)
Configures IALocation with givenlongitude.
-
withBearing
public IALocation.Builder withBearing(float bearing)
Configures IALocation with givenbearingin degrees.- See Also:
IALocation.getBearing()
-
withAccuracy
public IALocation.Builder withAccuracy(float accuracy)
Configures IALocation with givenaccuracyin meters.- See Also:
IALocation.getAccuracy()
-
withFloorLevel
public IALocation.Builder withFloorLevel(int level)
Configures IALocation with given floorlevel
-
withFloorCertainty
public IALocation.Builder withFloorCertainty(float certainty)
Configures IALocation with given floorcertainty
-
withAltitude
public IALocation.Builder withAltitude(double altitude)
Configures IALocation with givenaltitude, in meters.- See Also:
IALocation.getAltitude()
-
withExtras
public IALocation.Builder withExtras(Bundle extras)
Use extras from givenBundle. Note: this will replace all values previously set viawithXxxExtra.
-
withLongExtra
public IALocation.Builder withLongExtra(String key, long value)
Adds an extra argument.
-
withIntExtra
public IALocation.Builder withIntExtra(String key, int value)
Adds an extra argument.
-
build
public IALocation build()
Create aIALocationfrom thisIALocation.Builder.
-
-