onPhoneGapReady

Description

Fires when the component is running in a native shell that uses PhoneGap. Fires when the device is ready and PhoneGap is loaded.

Discussion

The onPhoneGapReady event fires after PhoneGap has been loaded and are ready for use. This event can be used to configure plugins or execute methods that require PhoneGap to be loaded. Examples include configuring the Status Bar plugin to use the iOS 6 styling or launching the Bar Code Scanner.

You can use Javascript Actions to run Action Javascript in addition to writing your own custom JavaScript.

Example

// Set the Status Bar to use iOS 6 Styling:
StatusBar.overlaysWebView(false);
StatusBar.styleDefault();

Limitations

PhoneGap Applications Only

See Also