Skip to content

Instantly share code, notes, and snippets.

@devcfgc
Created July 26, 2017 04:03
Show Gist options
  • Save devcfgc/b50249aa1f4e80261727b8eaf3f653d7 to your computer and use it in GitHub Desktop.
Save devcfgc/b50249aa1f4e80261727b8eaf3f653d7 to your computer and use it in GitHub Desktop.
xamarin code snippets
####################################################
## call CrossPluginName.IsSupported to check if it exists support for this plugin/library with net standard
## http://motzcod.es/post/162402194007/plugins-for-xamarin-go-dotnet-standard
####################################################
if(!CrossGeolocator.IsSupported)
return;
var position = await CrossGeolocator.Current.GetPositionAsync(TimeSpan.FromSeconds(10));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment