ExternalScreen iOS Plugin

This plugin allows you to use an external screen on iOS devices using either AirPlay or a VGA cable adapter. The external screen uses a UIWebView, that is controlled via Javascript APIs.
pearj1.1.12
platforms: ios
$ cordova plugin add com.tricedesigns.ios.externalscreen

PhoneGap iOS ExternalScreen Plugin

This plugin is originally by Andrew Trice and has been ported/enhanced for PhoneGap 3.0 plugman by pearj and mxparajuli.

1. Description

This plugin allows you to use an external screen on iOS devices using either AirPlay or VGA cable adapter.

The external screen is an UIWebView, that is controlled via Javascript APIs.

2. Installation and Usage

See Andrew Trice's original blog post to find out how to use this plugin.

His original samples can be used by replacing;

<script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
<script type="text/javascript" src="ExternalScreen/ExternalScreen.js"></script>

with:

<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" src="js/plugins/ExternalScreen.js"></script>

Additionally a new javascript method has been added called "registerForNotifications", if you call that method it will call the success callback handler with either "connected" or "disconnected" as the first method argument. This callback handler will be continually called for the life of the application.