Skip to content

Commit 72151e5

Browse files
committed
Reworded Plyer and Pyjnius descriptions
1 parent 27223e0 commit 72151e5

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

doc/source/apis.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Accessing Android APIs
55
When writing an Android application you may want to access the normal
66
Android APIs, which are available in Java. It is by calling these that
77
you would normally accomplish everything from vibration, to opening
8-
other applications, to accessing sensor data.
8+
other applications, to accessing sensor data, to controlling settings
9+
like screen orientation and wakelocks.
910

1011
These APIs can be accessed from Python to perform all of these tasks
1112
and many more. This is made possible by the `Pyjnius
@@ -28,9 +29,9 @@ Using Pyjnius
2829
-------------
2930

3031
Pyjnius lets you call the Android API directly from Python; this let's
31-
you do everything you can (and probably would) do in a Java app, from
32-
vibration, to starting other applications, to getting sensor data, to
33-
controlling settings like screen orientation and wakelocks.
32+
you do almost everything you can (and probably would) do in a Java
33+
app. Pyjnius is works by dynamically wrapping Java classes, so you
34+
don't have to wait for any particular feature to be pre-supported.
3435

3536
You can include Pyjnius in your APKs by adding the `pyjnius` or
3637
`pyjniussdl2` recipes to your build requirements (the former works
@@ -91,7 +92,9 @@ platform-specific APIs. Android is a supported platform, but it also
9192
supports iOS and desktop operating systems, with the idea that the
9293
same Plyer code would do the right thing on any of them, though Plyer
9394
is a work in progress and not all platforms support all Plyer calls
94-
yet.
95+
yet. This is the disadvantage of Plyer, it does not support all APIs
96+
yet, but you can always Pyjnius to call anything that is currently
97+
missing.
9598

9699
You can include Plyer in your APKs by adding the `Plyer` recipe to
97100
your build requirements. It is not included automatically.

0 commit comments

Comments
 (0)