GeotagHelper
GeotagHelper
GeotagHelper
GeotagHelper
Class
Definition
Provides methods for setting and retrieving geographic metadata for a file.
public : static class GeotagHelperpublic static class GeotagHelperPublic Static Class GeotagHelper// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Methods
GetGeotagAsync(IStorageFile) GetGeotagAsync(IStorageFile) GetGeotagAsync(IStorageFile) GetGeotagAsync(IStorageFile)
Asynchronously retrieves a Geopoint representing the geographic metadata of a file, if present.
public : static IAsyncOperation<Geopoint> GetGeotagAsync(IStorageFile file)public static IAsyncOperation<Geopoint> GetGeotagAsync(IStorageFile file)Public Static Function GetGeotagAsync(file As IStorageFile) As IAsyncOperation( Of Geopoint )// You can use this method in JavaScript.
The file from which the geographic metadata is retrieved.
An asynchronous operation that returns a Geopoint on successful completion.
SetGeotagAsync(IStorageFile, Geopoint) SetGeotagAsync(IStorageFile, Geopoint) SetGeotagAsync(IStorageFile, Geopoint) SetGeotagAsync(IStorageFile, Geopoint)
Asynchronously sets the geographic metadata of a file from the provided Geopoint.
public : static IAsyncAction SetGeotagAsync(IStorageFile file, Geopoint geopoint)public static IAsyncAction SetGeotagAsync(IStorageFile file, Geopoint geopoint)Public Static Function SetGeotagAsync(file As IStorageFile, geopoint As Geopoint) As IAsyncAction// You can use this method in JavaScript.
The file into which the geographic metadata is set.
The Geopoint representing the geographic metadata to be set.
An asynchronous action.
SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator) SetGeotagFromGeolocatorAsync(IStorageFile, Geolocator)
Asynchronously sets the geographic metadata of a file to the device's current location using the provided Geolocator object.
public : static IAsyncAction SetGeotagFromGeolocatorAsync(IStorageFile file, Geolocator geolocator)public static IAsyncAction SetGeotagFromGeolocatorAsync(IStorageFile file, Geolocator geolocator)Public Static Function SetGeotagFromGeolocatorAsync(file As IStorageFile, geolocator As Geolocator) As IAsyncAction// You can use this method in JavaScript.
The file into which the geographic metadata is set.
- geolocator
- Geolocator Geolocator Geolocator Geolocator
The Geolocator object that will be used to determine the device's current location.
An asychronous action.