UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AndroidJniWebViewControl.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
8
9namespace UE::Jni::Android::WebKit
10{
11 struct FWebView: Java::Lang::FObject
12 {
13 static constexpr FAnsiStringView ClassName = "android/webkit/WebView";
14 };
15
16 struct FJsResult: Java::Lang::FObject
17 {
18 static constexpr FAnsiStringView ClassName = "android/webkit/JsResult";
19 };
20
21 struct FJsPromptResult: Java::Lang::FObject
22 {
23 static constexpr FAnsiStringView ClassName = "android/webkit/JsPromptResult";
24 };
25}
26
27namespace UE::Jni
28{
29 struct FWebViewControl: Java::Lang::FObject
30 {
31 struct FViewClient: Java::Lang::FObject
32 {
33 static constexpr FAnsiStringView ClassName = "com/epicgames/unreal/WebViewControl$ViewClient";
34
35 static Java::Lang::TArray<jbyte>* JNICALL shouldInterceptRequestImpl(JNIEnv* env, jobject thiz, jstring JUrl);
36 static jboolean JNICALL shouldOverrideUrlLoading(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring JUrl);
37 static void JNICALL onPageLoad(JNIEnv* env, jobject thiz, jstring JUrl, jboolean bIsLoading, jint HistorySize, jint HistoryPosition);
38 static void JNICALL onReceivedError(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jint ErrorCode, jstring Description, jstring JUrl);
39
40 static constexpr FNativeMethod NativeMethods[]
41 {
46 };
47 };
48
49 struct FChromeClient: Java::Lang::FObject
50 {
51 static constexpr FAnsiStringView ClassName = "com/epicgames/unreal/WebViewControl$ChromeClient";
52
53 static jboolean JNICALL onJsAlert(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring JUrl, jstring Message, Android::WebKit::FJsResult* Result);
54 static jboolean JNICALL onJsBeforeUnload(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring JUrl, jstring Message, Android::WebKit::FJsResult* Result);
55 static jboolean JNICALL onJsConfirm(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring JUrl, jstring Message, Android::WebKit::FJsResult* Result);
56 static jboolean JNICALL onJsPrompt(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring JUrl, jstring Message, jstring DefaultValue, Android::WebKit::FJsPromptResult* Result);
57 static void JNICALL onReceivedTitle(JNIEnv* env, jobject thiz, Android::WebKit::FWebView* /* ignore */, jstring Title);
58
59 static constexpr FNativeMethod NativeMethods[]
60 {
66 };
67 };
68
69 static constexpr FAnsiStringView ClassName = "com/epicgames/unreal/WebViewControl";
70
72
74
75 static constexpr FMember Members[]
76 {
78 };
79
80 static constexpr FNativeMethod NativeMethods[]
81 {
83 };
84 };
85
88 template struct TInitialize<FWebViewControl>;
89}
90#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
T * New(FMemStackBase &Mem, int32 Count=1, int32 Align=DEFAULT_ALIGNMENT)
Definition MemStack.h:259
FValue::Member FMember
Definition RapidJsonUtils.h:62