Class CefAndroidProtocolHandler
java.lang.Object
com.cefrium.CefAndroidProtocolHandler
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 Summary
Modifier and TypeMethodDescriptionstatic StringgetMimeType(InputStream stream, String url) Called from native: best-effort MIME type for the URL/stream, or null.static InputStreamCalled from native: open an InputStream for the given URL, or null.
-
Method Details
-
open
Called from native: open an InputStream for the given URL, or null. -
getMimeType
Called from native: best-effort MIME type for the URL/stream, or null.
-