Class LocationConstraintExtensionBuilder
java.lang.Object
com.yoti.api.client.shareurl.extension.LocationConstraintExtensionBuilder
- All Implemented Interfaces:
ExtensionBuilder<LocationConstraintContent>
public class LocationConstraintExtensionBuilder
extends Object
implements ExtensionBuilder<LocationConstraintContent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withLatitude(double latitude) Allows you to specify the Latitude of the user's expected locationwithLongitude(double longitude) Allows you to specify the Longitude of the user's expected locationwithMaxUncertainty(double maxUncertainty) Maximum acceptable distance, in metres, of the area of uncertainty associated with the device location coordinates If not provided, a default value of 150m will be used.withRadius(double radius) Radius of the circle, centred on the specified location coordinates, where the device is allowed to perform the share If not provided, a default value of 150m will be used.
-
Constructor Details
-
LocationConstraintExtensionBuilder
public LocationConstraintExtensionBuilder()
-
-
Method Details
-
withLatitude
Allows you to specify the Latitude of the user's expected location- Returns:
- this LocationConstraintExtensionBuilder
-
withLongitude
Allows you to specify the Longitude of the user's expected location- Returns:
- this LocationConstraintExtensionBuilder
-
withRadius
Radius of the circle, centred on the specified location coordinates, where the device is allowed to perform the share If not provided, a default value of 150m will be used.- Parameters:
radius- The allowable distance, in metres, from the given lat/long location- Returns:
- this LocationConstraintExtensionBuilder
-
withMaxUncertainty
Maximum acceptable distance, in metres, of the area of uncertainty associated with the device location coordinates If not provided, a default value of 150m will be used.- Parameters:
maxUncertainty- Maximum allowed measurement uncertainty, in metres- Returns:
- this LocationConstraintExtensionBuilder
-
build
- Specified by:
buildin interfaceExtensionBuilder<LocationConstraintContent>- Returns:
- An object, T, built with parameters of this builder
-