UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AndroidJavaWebBrowser.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
7#if USE_ANDROID_JNI
8
11#include "Android/AndroidJava.h"
12#include "RHI.h"
13#include "RHIResources.h"
14
15// Wrapper for com/epicgames/unreal/WebViewControl.java.
16class FJavaAndroidWebBrowser : public UE::Jni::TClassObject<UE::Jni::FWebViewControl>
17{
18public:
19 FJavaAndroidWebBrowser(bool swizzlePixels, bool vulkanRenderer, int32 width, int32 height, jlong widgetPtr, bool bEnableRemoteDebugging, bool bUseTransparency, bool bEnableDomStorage, bool bShouldUseBitmapRender, const FString& UserAgentApplication, bool bEnableFloatingCloseButton);
21 void Release();
27 void ExecuteJavascript(const FString& Script);
28 void LoadURL(const FString& NewURL);
29 void LoadString(const FString& Contents, const FString& BaseUrl);
30 void StopLoad();
31 void Reload();
32 void Close();
33 void ShowFloatingCloseButton(bool bShow, bool bDraggable);
34 void GoBack();
35 void GoForward();
36 void SendTouchDown(float x, float y);
37 void SendTouchUp(float x, float y);
38 void SendTouchMove(float x, float y);
39 bool SendKeyDown(int32 KeyCode);
40 bool SendKeyUp(int32 KeyCode);
42 void SetVisibility(bool InIsVisible);
43 void Update(const int posX, const int posY, const int sizeX, const int sizeY);
44private:
45 static FName GetClassName();
46
53 FJavaClassMethod UpdateMethod;
66
67 // FrameUpdateInfo member field ids
73
76
77public:
79 {
80 return VideoTexture;
81 }
82
84 {
85 FPlatformMisc::LowLevelOutputDebugStringf(TEXT("Fetch RT: SetVideoTexture: %d"), Texture.IsValid());
86
88 }
89
90 void SetVideoTextureValid(bool Condition)
91 {
92 bVideoTextureValid = Condition;
93 }
94
96 {
97 return bVideoTextureValid;
98 }
99
100};
101
102#endif // USE_ANDROID_JNI
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
JsonWriter Close()
Definition NameTypes.h:617
static CORE_API void VARARGS LowLevelOutputDebugStringf(const TCHAR *Format,...)
Definition GenericPlatformMisc.cpp:940