ULocationServices::GetLastKnownLocation

Returns the last location information returned by the location service.

Windows
MacOS
Linux

References

Module

LocationServicesBPLibrary

Header

/Engine/Plugins/Runtime/LocationServicesBPLibrary/Source/LocationServicesBPLibrary/Classes/LocationServicesBPLibrary.h

Include

#include "LocationServicesBPLibrary.h"

Source

/Engine/Plugins/Runtime/LocationServicesBPLibrary/Source/LocationServicesBPLibrary/Private/LocationServicesBPLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Services|Mobile|Location")
static FLocationServicesData GetLastKnownLocation()

Remarks

Returns the last location information returned by the location service. If no location update has been made, will return a default-value-filled struct.

Returns

  • the last known location from updates

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss