Show / Hide Table of Contents

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
Started

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
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.
In This Article
Back to top Copyright © 2022 Esri.