Location.Builder class
This is an archived version of the documentation. Actual documentation for all platforms can be found here.
A class for building the user location.
Methods
Builder SetLatitude(double latitude) | Sets the latitude. |
Builder SetLongitude(double longitude) | Sets the longitude. |
Builder SetHorizontalAccuracy(double horizontalAccuracy) | Sets the horizontal accuracy. |
Location Build() | Creates an object of the |
Builder SetLatitude(double latitude) | Sets the latitude. |
Builder SetLongitude(double longitude) | Sets the longitude. |
Builder SetHorizontalAccuracy(double horizontalAccuracy) | Sets the horizontal accuracy. |
Location Build() | Creates an object of the |
Method description
Builder SetLatitude(double latitude)
public Builder SetLatitude(double latitude)
Sets the latitude.
latitude | Latitude. |
latitude | Latitude. |
Returns:
An object of the Location.Builder
class with the specified latitude.
Builder SetLongitude(double longitude)
public Builder SetLongitude(double longitude)
Sets the longitude.
longitude | Longitude. |
longitude | Longitude. |
Returns:
An object of the Location.Builder
class with the specified longitude.
Builder SetHorizontalAccuracy(double horizontalAccuracy)
public Builder SetHorizontalAccuracy(double horizontalAccuracy)
Sets the horizontal accuracy.
horizontalAccuracy | Horizontal accuracy. |
horizontalAccuracy | Horizontal accuracy. |
Returns:
An object of the Location.Builder
class with the specified horizontal accuracy.
Location Build()
public Location Build()
Creates an object of the Location
class that includes the data about the user location.
Location | An object of the Location class. |
Location | An object of the Location class. |
Returns:
An object of the Location
class with the data for the user location.