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
13
class
SAndroidWebBrowserWidget
;
14
15
class
FAndroidWebBrowserDialog
16
:
public
IWebBrowserDialog
17
{
18
public
:
19
virtual
~FAndroidWebBrowserDialog
()
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
{
41
check
(Type ==
EWebBrowserDialogType::Unload
);
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
47
private
:
48
49
EWebBrowserDialogType
Type
;
50
FText
MessageText;
51
FText
DefaultPrompt
;
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
56
FAndroidWebBrowserDialog
(
jstring
InMessageText
,
jstring
InDefaultPrompt
,
jobject
InCallback
);
57
58
// Create a dialog from OnJSAlert|Confirm|BeforeUnload arguments
59
FAndroidWebBrowserDialog
(
EWebBrowserDialogType
InDialogType
,
jstring
InMessageText
,
jobject
InCallback
);
60
61
friend
class
FAndroidWebBrowserWindow
;
62
friend
class
SAndroidWebBrowserWidget
;
63
};
64
65
typedef
FAndroidWebBrowserDialog
FWebBrowserDialog
;
66
67
#endif
// USE_ANDROID_JNI
check
#define check(expr)
Definition
AssertionMacros.h:314
ESwapAudioOutputDeviceResultState::Success
@ Success
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
IWebBrowserDialog.h
EWebBrowserDialogType
EWebBrowserDialogType
Definition
IWebBrowserDialog.h:12
EWebBrowserDialogType::Unload
@ Unload
EWebBrowserDialogEventResponse::Continue
@ Continue
FText
Definition
Text.h:385
FText::GetEmpty
static CORE_API const FText & GetEmpty()
Definition
Text.cpp:252
IWebBrowserDialog
Definition
IWebBrowserDialog.h:42
IWebBrowserDialog::GetType
virtual EWebBrowserDialogType GetType()=0
IWebBrowserDialog::IsReload
virtual bool IsReload()=0
IWebBrowserDialog::GetMessageText
virtual const FText & GetMessageText()=0
IWebBrowserDialog::GetDefaultPrompt
virtual const FText & GetDefaultPrompt()=0
EPawnActionMoveMode::Type
Type
Definition
PawnAction_Move.h:11
Engine
Source
Runtime
WebBrowser
Private
Android
AndroidWebBrowserDialog.h
Generated by
1.9.8