/// <summary>
/// The parameterized constructor of Location Class.
- /// <param name="latitude"> Latitude component of the device co-ordinate.</param>
- /// <param name="longitude"> Longitude component of the device co-ordinate.</param>
+ /// <param name="latitude"> Latitude component of the device co-ordinate [-90.0 ~ 90.0] (degrees).</param>
+ /// <param name="longitude"> Longitude component of the device co-ordinate[-180.0 ~ 180.0] (degrees).</param>
/// <param name="altitude"> Altitude value.</param>
/// <param name="horizontalAccuracy"> Horizontal Accuracy in meters.</param>
/// <param name="speed"> Devie Speed.</param>
}
/// <summary>
- /// The timestamp (time when measurement took place or 0 if valid).
+ /// The time value when the measurement was done.
/// </summary>
public DateTime Timestamp
{
/// <summary>
/// Gets the distance between the two given coordinates.
/// </summary>
- /// <param name="startLatitude"> The latitude of the source location.</param>
- /// <param name="startLongitude"> The Longitude of the source location.</param>
- /// <param name="endLatitude"> The latitude of the source location.</param>
- /// <param name="endLongitude"> The longitude of the source location.</param>
+ /// <param name="startLatitude"> The latitude of the source location [-90.0 ~ 90.0] (degrees).</param>
+ /// <param name="startLongitude"> The Longitude of the source location[-180.0 ~ 180.0] (degrees).</param>
+ /// <param name="endLatitude"> The latitude of the source location [-90.0 ~ 90.0] (degrees).</param>
+ /// <param name="endLongitude"> The longitude of the source location[-180.0 ~ 180.0] (degrees).</param>
/// <returns>Returns the distance between source and destination.</returns>
public static double GetDistanceBetween(double startLatitude, double startLongitude, double endLatitude, double endLongitude)
{
public abstract class LocationBoundary
{
internal IntPtr handle;
+
/// <summary>
/// Gets the location boundary type.
/// </summary>
- public BoundaryType BoundaryType{ get; internal set;}
+ public BoundaryType BoundaryType{ get; internal set; }
internal IntPtr GetHandle()
{
[StructLayout(LayoutKind.Sequential)]
public struct Coordinate
{
+ /// <summary>
+ /// Latitude component of the co-ordinate.
+ /// Should have a value between [-90.0 ~ 90.0] (degrees).
+ /// </summary>
public double Latitude;
+
+ /// <summary>
+ /// Longitude component of the co-ordinate.
+ /// Should have a value between [-180.0 ~ 180.0] (degrees).
+ /// </summary>
public double Longitude;
}
}
using System;\r
\r
\r
-namespace Tizen.Location\r
+namespace Tizen.Location
{\r
/// <summary>
/// An extended EventArgs class which contains the changed location information.
/// Class Constructor for LocationUpdatedEventArgs class.
/// </summary>
/// <param name="locationUpdate"> Object of Location class.</param>
- public LocationChangedEventArgs(Location updatatedLocation)
+ public LocationChangedEventArgs(Location locationUpdate)
{
- Location = updatatedLocation;
+ Location = locationUpdate;
}
/// <summary>
namespace Tizen.Location
{
- public static class LocationManagerError
+ internal static class LocationManagerError
{
public const int Base = -0x02C00000;
public const int BoundsBase = -0x02C00000 | 0x20;
/// <summary>
/// Gets the details of the location asynchronously.
/// </summary>
- /// <param name="timeout"> Timeout to stop requesting single location after.</param>
+ /// <param name="timeout"> Timeout to stop requesting single location after(seconds).</param>
/// <returns> A task which contains the current location details</returns>
public Task<Location> GetLocationAsync(int timeout)
{
/// <summary>
- /// Adds a bounds for a given location manager.
+ /// Adds a bounds for a given locator.
/// </summary>
- /// <param name="locationBoundary"> The boundary object to be added to the location manager.</param>
+ /// <param name="locationBoundary"> The boundary object to be added to the locator.</param>
public void AddBoundary(LocationBoundary locationBoundary)
{
Log.Info(Globals.LogTag, "AddBoundary called");
}
/// <summary>
- /// Deletes a bounds for a given location.
+ /// Deletes a bounds for a given locator.
/// </summary>
- /// <param name="locationBoundary"> The boundary object to be removed from the location manager.</param>
+ /// <param name="locationBoundary"> The boundary object to be removed from the locator.</param>
public void RemoveBoundary(LocationBoundary locationBoundary)
{
Log.Info(Globals.LogTag, "RemoveBoundary called");
/// </summary>
/// <param name="locationType"> The back-end positioning method to be used for LBS.</param>
/// <returns>Returns a boolean value indicating whether or not the specified method is supported.</returns>
- public static bool IsEnableType(LocationType locationType)
+ public static bool IsEnabledType(LocationType locationType)
{
Log.Info(Globals.LogTag, "Checking if the Location Manager type is Enabled");
bool initStatus;
// of Samsung Electronics, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use
// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.\r
-\r
-using System;\r
-\r
-\r
-namespace Tizen.Location\r
-{\r
+// you entered into with Samsung.
+
+using System;
+
+
+namespace Tizen.Location
+{
public class ZoneChangedEventArgs : EventArgs
{
/// <summary>
/// Class Constructor for ZoneChangedEventArgs class.
/// </summary>
/// <param name="state"> An enumeration of type BoundaryState.</param>
- /// <param name="latitude"> The latitude value.</param>
- /// <param name="longitude"> The longitude value.</param>
+ /// <param name="latitude"> The latitude value[-90.0 ~ 90.0] (degrees).</param>
+ /// <param name="longitude"> The longitude value[-180.0 ~ 180.0] (degrees).</param>
/// <param name="altitude"> The altitude value.</param>
/// <param name="timestamp"> The timestamp value.</param>
public ZoneChangedEventArgs(BoundaryState state, double latitude, double longitude, double altitude, DateTime timestamp)
/// Method to get the timestamp.
/// </summary>
public DateTime TimeStamp { get; private set; }
- }\r
-}\r
+ }
+}