# Introduction

- What is SCAP?
  SCAP(Signage Common Application Platform) is a JavaScript library that enables the use of services provided by webOS based LG Commercial Display Platform.
  This library can be used in a web-application in the same way as other JavaScript-based libraries(e.g. jQuery).

  What is Cordova?
  Cordova is a JavaScript library that enables the use of hardware features such as the camera or accelerometer in a web application. It is used to make a web application that works on a mobile operating system with UI frameworks such as jQuery Mobile, Dojo Mobile, Sencha Touch and Enyo.
  Cordova has the following features:
  - Can develop applications without having to use the native language provided by the mobile operating system
  - Can be distributed to a number of platforms using a single web programming code
  - Can implement common mobile operating system features using an API
  For more information about Cordova, see http://cordova.apache.org.

  Supported Standard Cordova API
  Cordova Standard API provides an API that enables the use of mobile OS features commonly available on a webOS TV. The next section describes the scope of Cordova Standard API supported by webOS.
  Note For more details on each of the modules, refer to the document at http://cordova.apache.org/docs/en/3.0.0.

  Accelerometer
  (TBD) Provides accelerometer sensor data on the MRCU (Magic Remote Control Unit).

  Connection
  Provides information on wired or wireless network connections. Regarding wireless networks, mobile networks such as 2G/3G/4G are not supported.

  Device
  Provides information on the devices on webOS TV. Provides information on the platform, device UUID and version.

  Events
  Events supported by webOS TV. The following events are provided.
  Button Events: - backbutton: An event that occurs when the Back button is pressed. Application lifecycle event - deviceready: An event that occurs when the Cordova library is loaded.
  - pause: An event that occurs when an application stops (background process).
  - resume: An event that occurs when an application is restarted after being stopped.
  - online: An event that occurs when an application or device connects to the network.
  - offline: An event that occurs when an application or device disconnects from the network.

  File
  (TBD) Provides read function for text files in the file system.

  Globalization
  Provides information on the region and language configured by the user on the webOS TV.

  Notification
  (TBD) Displays system and application messages by using system UI. The following UIs can be used.
  - alert: A dialog box with a single button.
  - confirm: A dialog box with two buttons.
  - prompt: A user-defined dialog box.

  Storage
  Provides storage space in the form of key-value or SQL Lite database.