Debian Codegraph @

plyer/facades/call.py

raw symbols SCIP
1 '''
2 Call
3 ====
4
5 The :class:`Call` provides access to calling feature of your device.
6
7 .. note::
8 - On Android your app needs the `CALL_PHONE` or `CALL_PRIVILEGED`
9 permission in order to make calls.
10
11 - Dialing call feature in not supported yet in iOS devices.
12
13 Simple Examples
14 ---------------
15
16 To make call::
17
18 >>> from plyer import call
19 >>> tel = 9999222299
20 >>> call.makecall(tel=tel)
21
22 To dial call::
23
24 >>> call.dialcall()
25
26 Supported Platforms
27 -------------------
28 Android, iOS
29
30 '''
31
32
33 class Call:
34 '''
35 Call facade.
36 '''
37
38 def makecall(self, tel):
39 '''
40 Make calls using your device.
41
42 :param tel: The reciever
43 :type tel: number
44 '''
45 self._makecall(tel=tel)
46
47 def dialcall(self):
48 '''
49 Opens dialing interface.
50 '''
51 self._dialcall()
52
53 # private
54
55 def _makecall(self, **kwargs):
56 raise NotImplementedError()
57
58 def _dialcall(self, **kwargs):
59 raise NotImplementedError()