Files
UnrealEngineUWP/Engine/Source/Runtime/Launch/Private/Android/AndroidJNI.h
Chris Babcock 6efa254792 Implemented FPlatformMisc::Controlscreensaver for Android and added ControlScreensaver Blueprint node
integrate from UE4-Fortnite
#ue4
#android

[CL 2303138 by Chris Babcock in Main branch]
2014-09-18 17:09:29 -04:00

43 lines
1.2 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include <jni.h>
#include <android/log.h>
extern JavaVM* GJavaVM;
extern jobject GJavaGlobalThis;
/*
* NOTE -- At the moment, this is specific to GameActivity
*/
// Define all the Java classes/methods that the game will need to access to
class JDef_GameActivity
{
public:
static jclass ClassID;
// Nonstatic methods
static jmethodID AndroidThunkJava_KeepScreenOn;
static jmethodID AndroidThunkJava_Vibrate;
static jmethodID AndroidThunkJava_ShowConsoleWindow;
static jmethodID AndroidThunkJava_ShowVirtualKeyboardInput;
static jmethodID AndroidThunkJava_LaunchURL;
static jmethodID AndroidThunkJava_ResetAchievements;
static jmethodID AndroidThunkJava_ShowAdBanner;
static jmethodID AndroidThunkJava_HideAdBanner;
static jmethodID AndroidThunkJava_CloseAdBanner;
static jmethodID AndroidThunkJava_GetAssetManager;
static jmethodID AndroidThunkJava_Minimize;
static jmethodID AndroidThunkJava_ForceQuit;
static jmethodID AndroidThunkJava_GetFontDirectory;
static jmethodID AndroidThunkJava_IsMusicActive;
};
// Returns the java environment
JNIEnv* GetJavaEnv(bool bRequireGlobalThis = true);