This version of Astro is only compatible with Xcode 7.3
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

var webViewPluginPromise = WebViewPlugin.init();
var defaultLoaderPluginPromise = DefaultLoaderPlugin.init();
Promise.join(webViewPluginPromise, defaultLoaderPluginPromise, 
  function(webView, defaultLoader) {
    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.