UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AndroidJniGameActivity.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#if USE_ANDROID_JNI
9
10namespace UE::Jni::Android::Content
11{
12 struct FIntent: Java::Lang::FObject
13 {
14 static constexpr FAnsiStringView ClassName = "android/content/Intent";
15 };
16}
17
18namespace UE::Jni::Android::View
19{
20 struct FSurface: Java::Lang::FObject
21 {
22 static constexpr FAnsiStringView ClassName = "android/view/Surface";
23 };
24}
25
26namespace UE::Jni
27{
28 struct FGameActivity: Java::Lang::FObject
29 {
30 static constexpr FAnsiStringView ClassName = "com/epicgames/unreal/GameActivity";
31
32 static FGameActivity* Get();
33#if USE_ANDROID_INPUT
34
36
38#endif
39
42 static void JNICALL nativeVirtualKeyboardShown(JNIEnv* env, jobject thiz, jint left, jint top, jint right, jint bottom);
51 static void JNICALL nativeOnActivityResult(JNIEnv* env, jobject thiz, FGameActivity* activity, jint requestCode, jint resultCode, Android::Content::FIntent* data);
52 static void JNICALL nativeHandleSensorEvents(JNIEnv* env, jobject thiz, Java::Lang::TArray<jfloat>* tilt, Java::Lang::TArray<jfloat>* rotation_rate, Java::Lang::TArray<jfloat>* gravity, Java::Lang::TArray<jfloat>* acceleration);
66 static void JNICALL nativeSetObbInfo(JNIEnv* env, jobject thiz, jstring ProjectName, jstring PackageName, jint Version, jint PatchVersion, jstring AppType);
68 static void JNICALL nativeSetConfigRulesVariables(JNIEnv* env, jobject thiz, Java::Lang::TArray<jstring>* KeyValuePairs);
75 static void JNICALL nativeSetSurfaceViewInfo(JNIEnv* env, jobject thiz, jint width, jint height);
77#if USE_ANDROID_INPUT
78
79 static constexpr FMember Members[]
80 {
83 };
84#endif
85
86 static constexpr FNativeMethod NativeMethods[]
87 {
125 };
126 };
127}
128
129namespace UE::Jni::Asis
130{
132 {
133 static constexpr FAnsiStringView ClassName = "com/epicgames/asis/AsisGameActivity";
134
138 static void JNICALL nativeAppCommand(JNIEnv* env, jclass clazz, jint cmd);
139
140 static constexpr FNativeMethod NativeMethods[]
141 {
146 };
147
148 private:
149 using FGameActivity::Members;
150 };
151}
152#if USE_ANDROID_STANDALONE
153
154namespace UE::Jni
155{
157}
158#endif
159#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool left(const int *a, const int *b, const int *c)
Definition RecastMesh.cpp:182
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition ObjectPtr.h:426
FValue::Member FMember
Definition RapidJsonUtils.h:62