Property IsEnabled
IsEnabled
Gets or sets a value indicating whether the location display and its datasource are enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A value indicating whether the location display and its datasource are enabled. |
Remarks
If the location display fails to start the LocationDataSource, this property will automatically turn off again. You can also use the Started property to check for an active location display, which will not become true until the LocationDataSource has successfully started to run.
If you need more detail why a location datasource failed to start, use the StartAsync() method instead which will return an error, if it could not be started.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Display device location: Display your current position on the map, as well as switch between different types of auto pan Modes.
Find place: Find places of interest near a location or within a specific area.
Navigate route: Use a routing service to navigate between points.
Show location history: Display your location history on the map.