Web Content Utils
Properties
A dummy domain used by the AssetLoader for local items. Instead of "file:///", Braze will have the HTML reference this domain for local files. InAppMessageHtmlBaseView.setWebViewContent and InAppMessageWebViewClient.assetLoader should both use this value. Do not use your own value since it is used internally by Braze for HTML In-App messages with a zip file.
Functions
Return the Braze html in-app message asset cache directory. This cache directory stores assets for html in-app messages that are not pre-fetched into the files directory.
Takes a remote url pointing to zip file assets and then downloads them into a local directory.
Takes a zip file and unzips it into a destination directory. Creates the destination directory if not already present.
Validates that the provided filename's canonical path exists under the intended directory. Throws IllegalStateException if not.