File: os.py

package info (click to toggle)
python-pywebview 6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,452 kB
  • sloc: python: 10,921; javascript: 3,250; java: 522; cs: 130; sh: 15; makefile: 3; xml: 1
file content (24 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
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;')