UOptionalMobileFeaturesBPLibrary

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

OptionalMobileFeaturesBPLibrary

Header

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

Include

#include "OptionalMobileFeaturesBPLibrary.h"

Syntax

UCLASS()
class UOptionalMobileFeaturesBPLibrary : public UBlueprintFunctionLibrary

Constructors

Name Description

Public function

UOptionalMobileFeaturesBPLibrary

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category

bool

 

AreHeadphonesPluggedIn()

Returns if headphones are plugged into the device

Public function Static UFunction BlueprintCallable, Category

int

 

GetBatteryLevel()

Returns the current battery level of the device in a range of [0, 100]

Public function Static UFunction BlueprintCallable, Category

float

 

GetBatteryTemperature()

Returns the device's temperature, in Celsius

Public function Static UFunction BlueprintCallable, Category

int

 

GetVolumeState()

Returns the current volume state of the device in a range of 0-100 (%)