BB10-Cordova/ScreenDisplay/plugin/src/blackberry10/index.js
function (success, fail, args, env) {
		var result = new PluginResult(args, env);
		result.ok(screenDisplay.getInstance().sdgetsize(), false);
	}
function (success, fail, args, env) {
		var result = new PluginResult(args, env);
		result.ok(screenDisplay.getInstance().sdgetsize(), false);
	}
These methods call into JNEXT.Template which handles the communication through the JNEXT plugin to template_js.cpp