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