 | ILocationServiceGetPositionAsync Method (TimeSpan, TimeSpan) |
Starts an asynchronous operation to retrieve the current location.
Namespace: Cimbalino.Toolkit.ServicesAssembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
SyntaxTask<LocationServicePosition> GetPositionAsync(
TimeSpan maximumAge,
TimeSpan timeout
)
Parameters
- maximumAge
- Type: SystemTimeSpan
The maximum acceptable age of cached location data. - timeout
- Type: SystemTimeSpan
The timeout.
Return Value
Type:
TaskLocationServicePositionThe
Task object representing the asynchronous operation.
Version InformationPortable
Supported in: 4.5
Windows
Supported in: 10.0, 8.1
Windows Phone
Supported in: 8.1
Windows Phone Silverlight
Supported in: 8.1, 8.0
See Also