Debian Codegraph @

src/services/castlehelpshift.pas

raw
1 {
2 Copyright 2016-2018 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Helpshift (http://helpshift.com/) integration (THelpshift). }
17 unit CastleHelpshift;
18
19 {$I castleconf.inc}
20
21 interface
22
23 uses Classes;
24
25 type
26 { Helpshift (http://helpshift.com/) integration. Only on Android now. }
27 THelpshift = class(TComponent)
28 public
29 class procedure ShowConversation;
30 class procedure ShowFAQs;
31 end;
32
33 implementation
34
35 uses CastleMessaging;
36
37 class procedure THelpshift.ShowConversation;
38 begin
39 Messaging.Send(['helpshift-show-conversation']);
40 end;
41
42 class procedure THelpshift.ShowFAQs;
43 begin
44 Messaging.Send(['helpshift-show-faqs']);
45 end;
46
47 end.