UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AndroidWebBrowserDialog.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
9#include "IWebBrowserDialog.h"
10
11#include <jni.h>
12
14
16 : public IWebBrowserDialog
17{
18public:
20 {}
21
22 // IWebBrowserDialog interface:
23
24 virtual EWebBrowserDialogType GetType() override
25 {
26 return Type;
27 }
28
29 virtual const FText& GetMessageText() override
30 {
31 return MessageText;
32 }
33
34 virtual const FText& GetDefaultPrompt() override
35 {
36 return DefaultPrompt;
37 }
38
39 virtual bool IsReload() override
40 {
42 return false; // The android webkit browser does not provide this infomation
43 }
44
45 virtual void Continue(bool Success = true, const FText& UserResponse = FText::GetEmpty()) override;
46
47private:
48
50 FText MessageText;
52
53 jobject Callback; // Either a reference to a JsResult or a JsPromptResult object depending on Type
54
55 // Create a dialog from OnJSPrompt arguments
57
58 // Create a dialog from OnJSAlert|Confirm|BeforeUnload arguments
60
61 friend class FAndroidWebBrowserWindow;
62 friend class SAndroidWebBrowserWidget;
63};
64
66
67#endif // USE_ANDROID_JNI
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EWebBrowserDialogType
Definition IWebBrowserDialog.h:12
Definition Text.h:385
static CORE_API const FText & GetEmpty()
Definition Text.cpp:252
Definition IWebBrowserDialog.h:42
virtual EWebBrowserDialogType GetType()=0
virtual bool IsReload()=0
virtual const FText & GetMessageText()=0
virtual const FText & GetDefaultPrompt()=0
Type
Definition PawnAction_Move.h:11