JavaScript
{dialog.object}stripCustomSchemeForAlphaWkWebView Method
Syntax
var result = {dialog.object}.stripCustomSchemeForAlphaWkWebView(fileURL)
Arguments
- fileURLstring
The file URL for a local file that contains a custom scheme to remove.
Returns
- resultstring
Returns the file URL with the custom scheme removed.
Description
Removes a custom scheme from a file URL.
Discussion
The {dialog.object}.stripCustomSchemeForAlphaWkWebView() method is used to remove a custom scheme from a file URL. The custom scheme is used to display files stored locally in an image, video, audio, etc tag on a mobile device in a Cordova application using the Alpha WkWebView plugin.
var ele = {dialog.object}.getPointer('image_1'); var fileURL = ele.src; var fileURL2 = {dialog.object}.stripCustomSchemeForAlphaWkWebView(fileURL);
Limitations
Cordova Applications using Alpha WkWebView Only
See Also