Package es.situm.sdk.location
Class ExternalLocation.Builder
- java.lang.Object
-
- es.situm.sdk.location.ExternalLocation.Builder
-
- Enclosing class:
- ExternalLocation
public static final class ExternalLocation.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String buildingIdentifier, java.lang.String floorIdentifier, double latitude, double longitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalLocation.Builder
accuracy(float accuracy)
How precise the user location is (in meters).ExternalLocation.Builder
bearing(Angle bearing)
Angle
that represents the orientation is facing the user's device.ExternalLocation
build()
Builds theExternalLocation
.
-
-
-
Method Detail
-
accuracy
public ExternalLocation.Builder accuracy(float accuracy)
How precise the user location is (in meters).- Parameters:
accuracy
- float. Defaults to 0.0 meters
-
bearing
public ExternalLocation.Builder bearing(@NonNull Angle bearing)
Angle
that represents the orientation is facing the user's device. If not specified, the external location will be represented with no orientation inMapView
.- Parameters:
bearing
-Angle
(degrees or radians).
-
build
public ExternalLocation build()
Builds theExternalLocation
.- Returns:
- a
ExternalLocation
instance.
-
-