mirror of https://github.com/kivy/pyjnius.git
Merge pull request #74 from Ian-Foote/master
Document autoclass syntax for nested Java classes.
This commit is contained in:
commit
b7a583984d
|
@ -215,8 +215,7 @@ You'll obtain something like this::
|
|||
Using TextToSpeech
|
||||
------------------
|
||||
|
||||
Same as the audio capture, by looking at the
|
||||
By looking at the `An introduction to Text-To-Speech in Android
|
||||
Same as the audio capture, by looking at the `An introduction to Text-To-Speech in Android
|
||||
<http://android-developers.blogspot.fr/2009/09/introduction-to-text-to-speech-in.html>`_ blog post, it's easy to do it with Pyjnius::
|
||||
|
||||
from jnius import autoclass
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.. _api:
|
||||
|
||||
.. _api:
|
||||
API
|
||||
===
|
||||
|
||||
|
@ -169,6 +169,10 @@ Reflection functions
|
|||
>>> autoclass('java.lang.System')
|
||||
<class 'jnius.java.lang.System'>
|
||||
|
||||
autoclass can also represent a nested Java class:
|
||||
|
||||
>>> autoclass('android.provider.Settings$Secure')
|
||||
<class 'jnius.reflect.android.provider.Settings$Secure'>
|
||||
|
||||
Java class implementation in Python
|
||||
-----------------------------------
|
||||
|
|
Loading…
Reference in New Issue