Node v6
Starting with v0.19 Astro must be used with Node v6+!
Menu

Default Loader Plugin

The DefaultLoaderPlugin uses a system-provided progress indicator to indicate that loading is happening in the plugin it is provided to. An instance of this plugin is used by default by the web view plugin.

Sample Usage

const webView = await WebViewPlugin.init()
const defaultLoader = await DefaultLoaderPlugin.init()

defaultLoader.setColor('#ff7777')
webView.setLoaderPlugin(defaultLoader)
webView.setBackgroundColor('#00FF11')
webView.navigate('http://www.mobify.com')

Methods

DefaultLoader.init() #

Creates and returns an instance of the default loader plugin that is used to make subsequent method calls.


setColor(color) #

Sets the color of the progress indicator.


setBackgroundColor(color) - (iOS only) #

Sets the background color of the loader.