-
Notifications
You must be signed in to change notification settings - Fork 13
/
DW.Androidapi.JNI.System.pas
70 lines (60 loc) · 3.07 KB
/
DW.Androidapi.JNI.System.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
69
70
unit DW.Androidapi.JNI.System;
{*******************************************************}
{ }
{ Kastri }
{ }
{ DelphiWorlds Cross-Platform Library }
{ }
{ Copyright(c) 2018 David Nottage }
{ All rights reserved }
{ }
{*******************************************************}
{$I DW.GlobalDefines.inc}
interface
uses
Androidapi.JNIBridge, Androidapi.JNI.JavaTypes;
type
JSystem = interface;
JSystemClass = interface(JObjectClass)
['{0CDDA5AF-A679-4D83-A1DF-1B7C9F355E7B}']
{class} function _Geterr: JPrintStream; cdecl;
{class} function _Getin: JInputStream; cdecl;
{class} function _Getout: JPrintStream; cdecl;
{class} procedure arraycopy(src: JObject; srcPos: Integer; dst: JObject; dstPos: Integer; length: Integer); cdecl;
{class} function clearProperty(name: JString): JString; cdecl;
// {class} function console: JConsole; cdecl;
{class} function currentTimeMillis: Int64; cdecl;
{class} procedure exit(code: Integer); cdecl;
{class} procedure gc; cdecl;
{class} function getProperties: JProperties; cdecl;
{class} function getProperty(propertyName: JString): JString; cdecl; overload;
{class} function getProperty(name: JString; defaultValue: JString): JString; cdecl; overload;
// {class} function getSecurityManager: JSecurityManager; cdecl;
{class} function getenv(name: JString): JString; cdecl; overload;
{class} function getenv: JMap; cdecl; overload;
{class} function identityHashCode(anObject: JObject): Integer; cdecl;
{class} function inheritedChannel: JChannel; cdecl;
{class} function lineSeparator: JString; cdecl;
{class} procedure load(pathName: JString); cdecl;
{class} procedure loadLibrary(libName: JString); cdecl;
{class} function mapLibraryName(nickname: JString): JString; cdecl;
{class} function nanoTime: Int64; cdecl;
{class} procedure runFinalization; cdecl;
{class} procedure runFinalizersOnExit(flag: Boolean); cdecl;
{class} procedure setErr(newErr: JPrintStream); cdecl;
{class} procedure setIn(newIn: JInputStream); cdecl;
{class} procedure setOut(newOut: JPrintStream); cdecl;
{class} procedure setProperties(p: JProperties); cdecl;
{class} function setProperty(name: JString; value: JString): JString; cdecl;
// {class} procedure setSecurityManager(sm: JSecurityManager); cdecl;
{class} property err: JPrintStream read _Geterr;
{class} property &in: JInputStream read _Getin;
{class} property &out: JPrintStream read _Getout;
end;
[JavaSignature('java/lang/System')]
JSystem = interface(JObject)
['{93E6C8D4-0481-439B-A258-870D01C85DF4}']
end;
TJSystem = class(TJavaGenericImport<JSystemClass, JSystem>) end;
implementation
end.