-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cordova.AndroidFullScreen.pas
68 lines (56 loc) · 3.14 KB
/
Cordova.AndroidFullScreen.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
unit Cordova.AndroidFullScreen;
interface
type
TAndroidFullScreenSuccessCallback = procedure;
TAndroidFullScreenErrorCallback = procedure(error: Variant);
TAndroidFullScreenTraceCallback = procedure(Value: Variant);
JAndroidFullScreen = class external 'AndroidFullScreen'
const SYSTEM_UI_FLAG_VISIBLE = 0;
const SYSTEM_UI_FLAG_LOW_PROFILE = 1;
const SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2;
const SYSTEM_UI_FLAG_FULLSCREEN = 4;
const SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR = 16;
const SYSTEM_UI_FLAG_LAYOUT_STABLE = 256;
const SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512;
const SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024;
const SYSTEM_UI_LAYOUT_FLAGS = 1536;
const SYSTEM_UI_FLAG_IMMERSIVE = 2048;
const SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096;
const SYSTEM_UI_FLAG_LIGHT_STATUS_BAR = 8192;
procedure isSupported(
successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure isSupported(successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure isImmersiveModeSupported(
successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure isImmersiveModeSupported(
successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure immersiveWidth(trace: TAndroidFullScreenTraceCallback); overload;
procedure immersiveWidth(trace: TAndroidFullScreenTraceCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure immersiveHeight(trace: TAndroidFullScreenTraceCallback); overload;
procedure immersiveHeight(trace: TAndroidFullScreenTraceCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure leanMode(successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure leanMode(successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure showSystemUI(successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure showSystemUI(successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure showUnderStatusBar(successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure showUnderStatusBar(successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure showUnderSystemUI(successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure showUnderSystemUI(successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure immersiveMode(
successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback); overload;
procedure immersiveMode(
successFunction: TAndroidFullScreenSuccessCallback); overload;
procedure setSystemUiVisibility(Visibility: Integer;
successFunction: TAndroidFullScreenSuccessCallback;
errorFunction: TAndroidFullScreenErrorCallback);
end;
var AndroidFullScreen external 'AndroidFullScreen': JAndroidFullScreen;