ULocationServices::AreLocationServicesEnabled

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

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 bool AreLocationServicesEnabled()

Remarks

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

Returns

  • true if the mobile device has enabled the appropriate service for the app

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