Location.Builder class

Warning.

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 Location class that includes the data about the user location.

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 Location class that includes the data about the user location.

Method description

Builder SetLatitude(double latitude)

public Builder SetLatitude(double latitude)

Sets the latitude.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.