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. |
System.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 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.12 - 200.5 |
Xamarin.Android | 100.12 - 100.15 |
Xamarin.iOS | 100.12 - 100.15 |
UWP | 100.12 - 200.5 |