Method CreateFromGeoElement
CreateFromGeoElement(GeoElement, Double)
Static factory function to create a FenceParameters object.
Declaration
public static FenceParameters CreateFromGeoElement(GeoElement geoElement, double bufferDistance)Parameters
| Type | Name | Description | 
|---|---|---|
| GeoElement | geoElement | An individual GeoElement used to create a FenceParameters object. | 
| Double | bufferDistance | A buffer distance in meters to apply to the GeoElement when checking if a Geotrigger condition is met. | 
Returns
| Type | Description | 
|---|---|
| FenceParameters | A FenceParameters object created from a GeoElement. | 
Remarks
This method creates the appropriate type of FenceParameters based on the type of the GeoElement that was supplied. The supported types of GeoElement are Graphic and Feature.
If passed an unsupported GeoElement, this method will return null.
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.12 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.12 - 100.15 | 
| .NET 5 | 100.12 | 
| .NET Core 3.1 | 100.12 | 
| Xamarin.Android | 100.12 - 100.15 | 
| Xamarin.iOS | 100.12 - 100.15 | 
| UWP | 100.12 - 100.15 |