WebUI X Documentation
    Preparing search index...

    Provides access to Android application context and common context-related operations. Wraps the underlying JavaObject interactions for easier use in JavaScript/TypeScript.

    Index

    Accessors

    • get applicationInfo(): null | JavaObject

      Gets the application info

      Returns null | JavaObject

    • get assets(): null | JavaObject

      Gets the assets manager

      Returns null | JavaObject

    • get cacheDir(): string

      Gets the application's cache directory

      Returns string

    • get contentResolver(): null | JavaObject

      Gets the content resolver

      Returns null | JavaObject

    • get dataDir(): string

      Gets the application's data directory

      Returns string

    • get externalCacheDir(): undefined | null | string

      Gets the application's external cache directory (if available)

      Returns undefined | null | string

    • get filesDir(): string

      Gets the application's files directory

      Returns string

    • get native(): JavaObject

      Gets the underlying JavaObject representing the Android context

      Returns JavaObject

    • get packageManager(): null | JavaObject

      Gets the package manager

      Returns null | JavaObject

    • get packageName(): string

      Gets the application's package name

      Returns string

    • get resources(): null | JavaObject

      Gets the resources object for the application

      Returns null | JavaObject

    • get instance(): Context

      Gets the singleton instance of the Context wrapper

      Returns Context

    Methods

    • Gets the system service with the given name

      Parameters

      • serviceName: string

        The name of the system service (e.g., "window", "power")

      Returns null | JavaObject

    • Releases the underlying context resources

      Returns void