File: content.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 (23 lines) | stat: -rw-r--r-- 901 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
__all__ = ('Context',)

from jnius import JavaClass, JavaStaticField, MetaJavaClass


class Context(JavaClass, metaclass=MetaJavaClass):
    """
    Represents the Android Context Java class providing access to application-specific
    resources and services.

    This class serves as a bridge to interact with the Android framework and various
    system services provided by the Android operating system. It holds functionality
    for accessing application environments, managing resources, and invoking system:
    defined services.

    Attributes:
        __javaclass__ (str): The fully qualified Java class name representation of the Context class.
        DOWNLOAD_SERVICE (JavaStaticField): A static field representing the Java constant
            for the download service.
    """

    __javaclass__ = 'android/content/Context'
    DOWNLOAD_SERVICE = JavaStaticField('Ljava/lang/String;')