forked from MagicFoundation/Alcinoe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALAndroidShortcutBadgerApi.pas
44 lines (33 loc) · 1.44 KB
/
ALAndroidShortcutBadgerApi.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
unit ALAndroidShortcutBadgerApi;
interface
uses Androidapi.JNI.GraphicsContentViewText,
Androidapi.JNIBridge,
Androidapi.JNI.JavaTypes,
Androidapi.JNI.App;
type
{**************************}
JShortcutBadger = interface;
{********************************************}
JShortcutBadgerClass = interface(JObjectClass)
['{9B06CB54-F019-4862-9F80-9EB0AB319E87}']
{class} function applyCount(context: JContext; badgeCount: Integer): Boolean; cdecl;
{class} procedure applyCountOrThrow(context: JContext; badgeCount: Integer); cdecl;
{class} procedure applyNotification(context: JContext; notification: JNotification; badgeCount: Integer); cdecl;
{class} function isBadgeCounterSupported(context: JContext): Boolean; cdecl;
{class} function removeCount(context: JContext): Boolean; cdecl;
{class} procedure removeCountOrThrow(context: JContext); cdecl;
end;
{********************************************************}
[JavaSignature('me/leolin/shortcutbadger/ShortcutBadger')]
JShortcutBadger = interface(JObject)
['{EA827BF1-5D29-4B36-B03A-63C980B1DCF8}']
end;
TJShortcutBadger = class(TJavaGenericImport<JShortcutBadgerClass, JShortcutBadger>) end;
implementation
procedure RegisterTypes;
begin
TRegTypes.RegisterType('ALAndroidShortcutBadgerApi.JShortcutBadger', TypeInfo(ALAndroidShortcutBadgerApi.JShortcutBadger));
end;
initialization
RegisterTypes;
end.