ULocationServices

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

LocationServicesBPLibrary

Header

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

Include

#include "LocationServicesBPLibrary.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class ULocationServices : public UBlueprintFunctionLibrary

Constructors

Name Description

Public function

ULocationServices

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category

bool

 

AreLocationServicesEnabled()

Checks if the Location Services on the mobile device are enabled for this application

Public function Static

void

 

ClearLocationServicesImpl()

Public function Static UFunction BlueprintCallable, Category

FLocationSer...

 

GetLastKnownLocation()

Returns the last location information returned by the location service.

Public function Static UFunction BlueprintCallable, Category

ULocationSer...

 

GetLocationServicesImpl()

Returns the Location Services implementation object.

Public function Static UFunction BlueprintCallable, Category

bool

 

InitLocationServices

(
    ELocationAccuracy Accuracy,
    float UpdateFrequency,
    float MinDistanceFilter
)

Called to set up the Location Service before use

Public function Static UFunction BlueprintCallable, Category

bool

 

IsLocationAccuracyAvailable

(
    ELocationAccuracy Accuracy
)

Checks if the supplied Accuracy is available on the current device.

Public function Static

void

 

SetLocationServicesImpl

(
    ULocationServicesImpl* Impl
)

Set and clear the Location Services implementation object.

Public function Static UFunction BlueprintCallable, Category

bool

 

StartLocationServices()

Starts requesting location updates from the appropriate Location Service

Public function Static UFunction BlueprintCallable, Category

bool

 

StopLocationServices()

Stops the updates of location from the Location Service that was started with StartLocationService

Constants

Name

Description

ImplInstance

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