UKismetSystemLibrary::GetVolumeButtonsHandledBySystem
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if the OS is currently handling volume up/down button presses by default. Android only.
Caveats & Gotchas
- • Android only — the return value is not meaningful on other platforms.
- • Reflects whatever was last set with SetVolumeButtonsHandledBySystem (or the platform default if it was never called), not a live query of the OS.
Signature
static ENGINE_API bool GetVolumeButtonsHandledBySystem() Return Type
bool Example
Check current handling before toggling C++
if (UKismetSystemLibrary::GetVolumeButtonsHandledBySystem())
{
UKismetSystemLibrary::SetVolumeButtonsHandledBySystem(false);
} Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?