| 1 |
__all__ = ('Environment',) |
| 2 |
|
| 3 |
from jnius import JavaClass, JavaStaticField, MetaJavaClass |
| 4 |
|
| 5 |
|
| 6 |
class Environment(JavaClass, metaclass=MetaJavaClass): |
| 7 |
""" |
| 8 |
Represents the Android environment class for interacting with the external storage and system paths. |
| 9 |
|
| 10 |
This class provides access to system-defined constants and methods for |
| 11 |
interacting with the device's file and directory management environment. |
| 12 |
Acts as a proxy to the Android's Java environment class. Use its attributes |
| 13 |
and methods to access critical file paths or configurations within the |
| 14 |
Android operating system. |
| 15 |
|
| 16 |
Attributes: |
| 17 |
__javaclass__ (str): Represents the Java class path being bridged. |
| 18 |
DIRECTORY_DOWNLOADS (JavaStaticField): Static field representing the |
| 19 |
path for storing user downloads, defined in the Android |
| 20 |
environment. |
| 21 |
""" |
| 22 |
|
| 23 |
__javaclass__ = 'android/os/Environment' |
| 24 |
DIRECTORY_DOWNLOADS = JavaStaticField('Ljava/lang/String;') |