<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I get a reference to SystemLocationDataSource in .net Standard Library? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372625#M4404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We should make that easier I agree. Currently that API is only available for platform-specific code, and not part of the .NET Standard API surface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now you can do what I did here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/ARSamples/ARToolkit.Samples.Forms/Samples/ContinuousGPSSample.xaml.cs#L26-L27" title="https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/ARSamples/ARToolkit.Samples.Forms/Samples/ContinuousGPSSample.xaml.cs#L26-L27"&gt;arcgis-toolkit-dotnet/ContinuousGPSSample.xaml.cs at master · Esri/arcgis-toolkit-dotnet · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return a value when running on Xamarin.iOS, Xamarin.Forms, UWP, .NET Core and .NET Framework (even if you compiled for .NET Standard).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2020 19:41:07 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-06-09T19:41:07Z</dc:date>
    <item>
      <title>How do I get a reference to SystemLocationDataSource in .net Standard Library?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372623#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an .net Xamarin Map app that I created using a .net Standard class library for all my shared code, Xamarin forms. How do i get a reference to a SystemLocationDataSouce that is only available in the android or IOS project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 16:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372623#M4402</guid>
      <dc:creator>JayBowman</dc:creator>
      <dc:date>2020-06-08T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a reference to SystemLocationDataSource in .net Standard Library?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372624#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure what you mean bu get a reference to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SystemLocationDataSource is a device dependent implementation of LocationDataSource, so having the class available in the .net shared Xamarin library is not be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in my shared project the property mapView.LocationDisplay.DataSource will be the&amp;nbsp;&lt;SPAN&gt;SystemLocationDataSource&amp;nbsp;for the currently running&amp;nbsp;platform&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372624#M4403</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-06-08T21:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a reference to SystemLocationDataSource in .net Standard Library?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372625#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We should make that easier I agree. Currently that API is only available for platform-specific code, and not part of the .NET Standard API surface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now you can do what I did here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/ARSamples/ARToolkit.Samples.Forms/Samples/ContinuousGPSSample.xaml.cs#L26-L27" title="https://github.com/Esri/arcgis-toolkit-dotnet/blob/master/src/ARSamples/ARToolkit.Samples.Forms/Samples/ContinuousGPSSample.xaml.cs#L26-L27"&gt;arcgis-toolkit-dotnet/ContinuousGPSSample.xaml.cs at master · Esri/arcgis-toolkit-dotnet · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return a value when running on Xamarin.iOS, Xamarin.Forms, UWP, .NET Core and .NET Framework (even if you compiled for .NET Standard).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 19:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372625#M4404</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-06-09T19:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a reference to SystemLocationDataSource in .net Standard Library?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372626#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI once update 9 ships, from a .NET Standard library you'll be able to call: LocationDataSource.CreateDefault() to get a location-datasource for the platform. Until then you can use the code snippet I linked to above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 15:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-get-a-reference-to/m-p/372626#M4405</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-06-16T15:06:12Z</dc:date>
    </item>
  </channel>
</rss>

