Merge pull request #74 from Ian-Foote/master

Document autoclass syntax for nested Java classes.
This commit is contained in:
Mathieu Virbel 2013-10-25 07:15:08 -07:00
commit b7a583984d
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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
-----------------------------------