Class CefAndroidProtocolHandler

java.lang.Object
com.cefrium.CefAndroidProtocolHandler

public final class CefAndroidProtocolHandler extends Object
Java side of Cefrium's APK asset/resource URL loading (FEATURE-061). Opens an InputStream for file:///android_asset/... (APK assets/) and file:///android_res/... (APK res/) URLs from the HOST app's context. Called from native via manual JNI (see android_asset_response_delegate.cc). Adapted from android_webview's AndroidProtocolHandler.

Kept from R8 stripping by a consumer keep rule (referenced only from native).

  • Method Details

    • open

      public static InputStream open(String url)
      Called from native: open an InputStream for the given URL, or null.
    • getMimeType

      public static String getMimeType(InputStream stream, String url)
      Called from native: best-effort MIME type for the URL/stream, or null.