-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from gmatozinho/development
Development
- Loading branch information
Showing
87 changed files
with
3,573 additions
and
4,852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Name":"Geolocator Plugin","Id":2035,"Alias":"GeolocatorPlugin","Description":"# Geolocator Plugin details\r\n\r\nSimple cross platform plugin to get GPS location including heading, speed, and more.\r\n\r\n#### Features\r\n* Async GPS Location Detection\r\n* Heading\r\n* Speed\r\n* Listen for Changes\r\n\r\n\r\nWorks from any shared code or PCL project.\r\n\r\nFind more plugins at: http://www.github.com/xamarin/plugins","Version":"1.0.3","Summary":"Simple cross platform plugin to get GPS location including heading, speed, and more.","QuickStart":"# Getting Started with Geolocator Plugin\r\n\r\n### API Usage\r\n\r\nCall **CrossGeolocator.Current** from any project or PCL to gain access to APIs.\r\n\r\n```\r\nvar locator = CrossGeolocator.Current;\r\nlocator.DesiredAccuracy = 50;\r\n\r\nvar position = await locator.GetPositionAsync (timeoutMilliseconds: 10000);\r\n\r\nConsole.WriteLine (\"Position Status: {0}\", position.Timestamp);\r\nConsole.WriteLine (\"Position Latitude: {0}\", position.Latitude);\r\nConsole.WriteLine (\"Position Longitude: {0}\", position.Longitude);\r\n```\r\n\r\n### **IMPORTANT**\r\nAndroid:\r\n\r\nYou must request ACCESS_COARSE_LOCATION \u0026 ACCESS_FINE_LOCATION permission\r\n\r\niOS:\r\n\r\nIn iOS 8 you now have to call either RequestWhenInUseAuthorization or RequestAlwaysAuthorization on the location manager. Additionally you need to add either the concisely named NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription to your Info.plist. \r\nSee: http://motzcod.es/post/97662738237/scanning-for-ibeacons-in-ios-8\r\n\r\nWindows Phone:\r\n\r\nYou must set the ID_CAP_LOCATION permission.","Hash":"94480115a3947ef812df48cae11dbd94","TargetPlatforms":["ios","ios-unified","android"],"TrialHash":null} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Geolocator Plugin details | ||
|
||
Simple cross platform plugin to get GPS location including heading, speed, and more. | ||
|
||
#### Features | ||
* Async GPS Location Detection | ||
* Heading | ||
* Speed | ||
* Listen for Changes | ||
|
||
|
||
Works from any shared code or PCL project. | ||
|
||
Find more plugins at: http://www.github.com/xamarin/plugins |
30 changes: 30 additions & 0 deletions
30
Components/GeolocatorPlugin-1.0.3/component/GettingStarted.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Getting Started with Geolocator Plugin | ||
|
||
### API Usage | ||
|
||
Call **CrossGeolocator.Current** from any project or PCL to gain access to APIs. | ||
|
||
``` | ||
var locator = CrossGeolocator.Current; | ||
locator.DesiredAccuracy = 50; | ||
var position = await locator.GetPositionAsync (timeoutMilliseconds: 10000); | ||
Console.WriteLine ("Position Status: {0}", position.Timestamp); | ||
Console.WriteLine ("Position Latitude: {0}", position.Latitude); | ||
Console.WriteLine ("Position Longitude: {0}", position.Longitude); | ||
``` | ||
|
||
### **IMPORTANT** | ||
Android: | ||
|
||
You must request ACCESS_COARSE_LOCATION & ACCESS_FINE_LOCATION permission | ||
|
||
iOS: | ||
|
||
In iOS 8 you now have to call either RequestWhenInUseAuthorization or RequestAlwaysAuthorization on the location manager. Additionally you need to add either the concisely named NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription to your Info.plist. | ||
See: http://motzcod.es/post/97662738237/scanning-for-ibeacons-in-ios-8 | ||
|
||
Windows Phone: | ||
|
||
You must set the ID_CAP_LOCATION permission. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Geolocator Plugin license | ||
|
||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 James Montemagno / Refractored LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<component format="1" id="GeolocatorPlugin" is-shell="true"> | ||
<name>Geolocator Plugin</name> | ||
<publisher>James Montemagno</publisher> | ||
<publisher-url>http://www.github.com/jamesmontemagno/Xamarin.Plugins</publisher-url> | ||
<version>1.0.3</version> | ||
<summary>Simple cross platform plugin to get GPS location including heading, speed, and more.</summary> | ||
<packages> | ||
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="winphone-8.1" /> | ||
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="ios-unified" /> | ||
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="android" /> | ||
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="winphone-8.0" /> | ||
<package id="Xam.Plugin.Geolocator" version="1.0.3" framework="ios" /> | ||
</packages> | ||
<samples> | ||
<sample id="GeolocatorSample"> | ||
<name>Android Sample</name> | ||
<summary>Android Sample</summary> | ||
</sample> | ||
<sample id="GeolocatorSample"> | ||
<name>WindowsPhone Sample</name> | ||
<summary>WindowsPhone Sample</summary> | ||
</sample> | ||
<sample id="GeolocatorSample"> | ||
<name>iOS Sample</name> | ||
<summary>iOS Sample</summary> | ||
</sample> | ||
</samples> | ||
</component> |
Binary file added
BIN
+13.5 KB
Components/GeolocatorPlugin-1.0.3/component/icons/GeolocatorPlugin_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+117 KB
Components/GeolocatorPlugin-1.0.3/component/icons/GeolocatorPlugin_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.