The module defines the functionalities that are provides as the Samsung TV for Tizen Platform Product API.
Additionally, this API specifies the location in the ECMAScript hierarchy in which the Samsung TV for Tizen Platform Product API is instantiated (window.webapis).
function onerror(error)
{
console.log(error.message);
}
2. Full WebIDL
module WebApi {
[NoInterfaceObject] interface WebApiObject {
readonly attribute WebApi webapis;
};
Window implements WebApiObject;
[NoInterfaceObject] interface WebApi {
};
[NoInterfaceObject] interface WebAPIException {
const unsigned long INDEX_SIZE_ERR = 1;
const unsigned long DOMSTRING_SIZE_ERR = 2;
const unsigned long HIERARCHY_REQUEST_ERR = 3;
const unsigned long WRONG_DOCUMENT_ERR = 4;
const unsigned long INVALID_CHARACTER_ERR = 5;
const unsigned long NO_DATA_ALLOWED_ERR = 6;
const unsigned long NO_MODIFICATION_ALLOWED_ERR = 7;
const unsigned long NOT_FOUND_ERR = 8;
const unsigned long NOT_SUPPORTED_ERR = 9;
const unsigned long INUSE_ATTRIBUTE_ERR = 10;
const unsigned long INVALID_STATE_ERR = 11;
const unsigned long SYNTAX_ERR = 12;
const unsigned long INVALID_MODIFICATION_ERR = 13;
const unsigned long NAMESPACE_ERR = 14;
const unsigned long INVALID_ACCESS_ERR = 15;
const unsigned long VALIDATION_ERR = 16;
const unsigned long TYPE_MISMATCH_ERR = 17;
const unsigned long SECURITY_ERR = 18;
const unsigned long NETWORK_ERR = 19;
const unsigned long ABORT_ERR = 20;
const unsigned long URL_MISMATCH_ERR = 21;
const unsigned long QUOTA_EXCEEDED_ERR = 22;
const unsigned long TIMEOUT_ERR = 23;
const unsigned long INVALID_NODE_TYPE_ERR = 24;
const unsigned long DATA_CLONE_ERR = 25;
const unsigned long INVALID_VALUES_ERR = 26;
const unsigned long IO_ERR = 27;
const unsigned long SERVICE_NOT_AVAILABLE_ERR = 28;
const unsigned long UNKNOWN_ERR = 9999;
readonly attribute unsigned long code;
readonly attribute DOMString name;
readonly attribute DOMString message;
};
[NoInterfaceObject] interface WebAPIError {
readonly attribute unsigned long code;
readonly attribute DOMString name;
readonly attribute DOMString message;
};
[Callback = FunctionOnly, NoInterfaceObject] interface SuccessCallback {
void onsuccess();
};
[Callback = FunctionOnly, NoInterfaceObject] interface ErrorCallback {
void onerror(WebAPIError error);
};
};
Manage Your Cookies
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.