Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created March 12, 2012 18:17
Show Gist options
  • Save andrewpthorp/2023751 to your computer and use it in GitHub Desktop.
Save andrewpthorp/2023751 to your computer and use it in GitHub Desktop.
PGExternalScreen Error
function resultHandler(result){
alert(result);
}
function errorHandler(error){
alert("ERROR: "+ error);
}
$(document).on("deviceready", function(){
PGExternalScreen.setupScreenConnectionNotificationHandlers( resultHandler, errorHandler );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment