ArcGISRuntimeXamarin.Samples.DisplayDeviceLocation.DisplayDeviceLocation.OnStopButtonClicked C# (CSharp) Method

OnStopButtonClicked() private method

private OnStopButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void OnStopButtonClicked(object sender, EventArgs e)
        {
            //TODO Remove this IsStarted check https://github.com/Esri/arcgis-runtime-samples-xamarin/issues/182
            if (_myMapView.LocationDisplay.IsEnabled)
                _myMapView.LocationDisplay.IsEnabled = false;
        }