forked from MagicFoundation/Alcinoe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathALAndroidInstallReferrerApi.pas
56 lines (44 loc) · 2.06 KB
/
ALAndroidInstallReferrerApi.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
unit ALAndroidInstallReferrerApi;
interface
uses
Androidapi.JNI.GraphicsContentViewText,
Androidapi.JNIBridge,
Androidapi.JNI.JavaTypes;
type
{*************************************}
JALInstallReferrerListener = interface;
JALInstallReferrer = interface;
{*****************************************************}
JALInstallReferrerListenerClass = interface(IJavaClass)
['{1BDEF5E8-0076-4FDE-965A-602B3D130724}']
end;
{**********************************************************************}
[JavaSignature('com/alcinoe/installreferrer/ALInstallReferrerListener')]
JALInstallReferrerListener = interface(IJavaInstance)
['{AA8674DA-EE8D-4324-97FB-4810EBDDD30B}']
procedure onGetInstallReferrerSuccess(referrer: JString; clickTimestampSeconds: int64; installBeginTimestampSeconds: int64); cdecl;
procedure onGetInstallReferrerError(responseCode: integer); cdecl;
end;
TJALInstallReferrerListener = class(TJavaGenericImport<JALInstallReferrerListenerClass, JALInstallReferrerListener>) end;
{***********************************************}
JALInstallReferrerClass = interface(JObjectClass)
['{0EB19261-0388-4FED-A8D9-9F581E214FE6}']
{class} function init(context: JContext): JALInstallReferrer; cdecl;
end;
{**************************************************************}
[JavaSignature('com/alcinoe/installreferrer/ALInstallReferrer')]
JALInstallReferrer = interface(JObject)
['{8E2550A4-C4B9-425F-A09A-5F397F1542AA}']
procedure setListener(listener: JALInstallReferrerListener); cdecl;
procedure getInstallReferrer; cdecl;
end;
TJALInstallReferrer = class(TJavaGenericImport<JALInstallReferrerClass, JALInstallReferrer>) end;
implementation
procedure RegisterTypes;
begin
TRegTypes.RegisterType('ALAndroidApi.JALInstallReferrerListener', TypeInfo(ALAndroidInstallReferrerApi.JALInstallReferrerListener));
TRegTypes.RegisterType('ALAndroidApi.JALInstallReferrer', TypeInfo(ALAndroidInstallReferrerApi.JALInstallReferrer));
end;
initialization
RegisterTypes;
end.