mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 15:49:32 +01:00 
			
		
		
		
	More lazdevice documentation
git-svn-id: trunk@34630 -
This commit is contained in:
		
							parent
							
								
									80e903b599
								
							
						
					
					
						commit
						6386665a85
					
				@ -165,8 +165,12 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- procedure Visibility: public -->
 | 
			
		||||
<element name="TLazMessaging.SendMessage">
 | 
			
		||||
<short></short>
 | 
			
		||||
<descr>
 | 
			
		||||
<short>Sends a message to the target specified on it</short>
 | 
			
		||||
<descr><p>The message to be sent should be created with the method CreateMessage
 | 
			
		||||
from this same class and later released with FreeMessage. The same message can be
 | 
			
		||||
sent multiple times, but ideally it should not be edited after sending the first 
 | 
			
		||||
time to avoid confusion when obtaining the message object back in the status
 | 
			
		||||
callback.<p>
 | 
			
		||||
</descr>
 | 
			
		||||
<errors>
 | 
			
		||||
</errors>
 | 
			
		||||
@ -181,7 +185,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- procedure Visibility: public -->
 | 
			
		||||
<element name="TLazMessaging.CreateMessage">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Creates a new message which can be sent with SendMessage</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<errors>
 | 
			
		||||
@ -197,7 +201,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- procedure Visibility: public -->
 | 
			
		||||
<element name="TLazMessaging.FreeMessage">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Removes a message created with CreateMessage</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<errors>
 | 
			
		||||
@ -222,7 +226,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- class Visibility: default -->
 | 
			
		||||
<element name="TLazPositionInfo">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Represents the hardware GPS device</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<errors>
 | 
			
		||||
@ -233,7 +237,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.IsPositionDataAvailable">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Indicates if position info was read in the life of this program</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -242,7 +246,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.accuracy">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>The horizontal accuracy of the position in meters</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -251,7 +255,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.altitude">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Altitude in meters in relation to the sea level using the World Geodetic System 1984 (WGS84) datum</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -260,16 +264,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.altitudeAccuracy">
 | 
			
		||||
<short></short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
</seealso>
 | 
			
		||||
</element>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.cellID">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>The vertical accuracy of the position in meters, or zero if not available</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -278,7 +273,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.latitude">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Latitude in degrees using the World Geodetic System 1984 (WGS84) datum</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -287,7 +282,16 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.longitude">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Longitude in degrees using the World Geodetic System 1984 (WGS84) datum</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
</seealso>
 | 
			
		||||
</element>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.longitude">
 | 
			
		||||
<short>In meters / second</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -296,7 +300,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- variable Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.timeStamp">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>The time when the latest location was established</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
@ -321,7 +325,7 @@ because there is no signal here.</short>
 | 
			
		||||
 | 
			
		||||
<!-- property Visibility: public -->
 | 
			
		||||
<element name="TLazPositionInfo.OnPositionRetrieved">
 | 
			
		||||
<short></short>
 | 
			
		||||
<short>Called asynchronously when the position is read</short>
 | 
			
		||||
<descr>
 | 
			
		||||
</descr>
 | 
			
		||||
<seealso>
 | 
			
		||||
 | 
			
		||||
@ -70,11 +70,13 @@ type
 | 
			
		||||
  public
 | 
			
		||||
    constructor Create; virtual;
 | 
			
		||||
    destructor Destroy; override;
 | 
			
		||||
    procedure SendMessage(AMsg: TLazDeviceMessage); // Attempt to send the specified message.
 | 
			
		||||
    // Attempt to send the specified message.
 | 
			
		||||
    procedure SendMessage(AMsg: TLazDeviceMessage);
 | 
			
		||||
    function CreateMessage: TLazDeviceMessage;
 | 
			
		||||
    procedure FreeMessage(AMessage: TLazDeviceMessage);
 | 
			
		||||
    // Called asynchronously when there is a message sending status
 | 
			
		||||
    property OnMessagingStatus: TOnMessagingStatus read FOnMessagingStatus write FOnMessagingStatus;
 | 
			
		||||
    // Called asynchronously when there is a message status
 | 
			
		||||
    property OnMessagingStatus: TOnMessagingStatus
 | 
			
		||||
      read FOnMessagingStatus write FOnMessagingStatus;
 | 
			
		||||
  end;
 | 
			
		||||
 | 
			
		||||
  // TLazPositionInfo
 | 
			
		||||
@ -86,12 +88,12 @@ type
 | 
			
		||||
    IsPositionDataAvailable: Boolean; // Indicates if position info was read in the life of this program
 | 
			
		||||
    // These fields hold the last position information read
 | 
			
		||||
    accuracy: Double; // The horizontal accuracy of the position in meters
 | 
			
		||||
    altitude: Double; // Altitude in meters using the World Geodetic System 1984 (WGS84) datum.
 | 
			
		||||
    altitudeAccuracy: Double; // The vertical accuracy of the position in meters, or null if not available.
 | 
			
		||||
    altitude: Double; // Altitude in meters in relation to the sea level using the World Geodetic System 1984 (WGS84) datum.
 | 
			
		||||
    altitudeAccuracy: Double; // The vertical accuracy of the position in meters, or zero if not available.
 | 
			
		||||
    latitude: Double; // Latitude in degrees using the World Geodetic System 1984 (WGS84) datum.
 | 
			
		||||
    longitude: Double; // Longitude in degrees using the World Geodetic System 1984 (WGS84) datum.
 | 
			
		||||
    speed: Double; // In meters / second
 | 
			
		||||
    timeStamp: TDateTime; // The time when the location was established.
 | 
			
		||||
    timeStamp: TDateTime; // The time when the latest location was established.
 | 
			
		||||
    procedure RequestPositionInfo(AMethod: TLazPositionMethod);
 | 
			
		||||
    // Called asynchronously when the position is read
 | 
			
		||||
    property OnPositionRetrieved: TNotifyEvent read FOnPositionRetrieved write FOnPositionRetrieved;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user