RDK Documentation (Open Sourced RDK Components)
jsevent.cpp File Reference

JavaScript Event Impl for AAMP_JSController and AAMPMediaPlayer_JS. More...

#include "jsevent.h"
#include "jsutils.h"
#include <stdio.h>
Include dependency graph for jsevent.cpp:

Go to the source code of this file.

Functions

static JSClassRef AAMPJSEvent_class_ref ()
 
JSObjectRef createNewAAMPJSEvent (JSGlobalContextRef ctx, const char *type, bool bubbles, bool cancelable)
 To create a new JS event instance. More...
 

Variables

static const JSClassDefinition AAMPJSEvent_object_def
 Structure contains properties and callbacks of Event object of AAMP_JSController. More...
 

yes

JavaScript Event Impl for AAMP_JSController and AAMPMediaPlayer_JS.

Definition in file jsevent.cpp.

Function Documentation

◆ createNewAAMPJSEvent()

JSObjectRef createNewAAMPJSEvent ( JSGlobalContextRef  ctx,
const char *  type,
bool  bubbles,
bool  cancelable 
)

To create a new JS event instance.

Parameters
[in]ctxJS execution context
[in]typeevent type
[in]bubblesdenotes if event support bubbling
[in]cancelabledenotes if event is cancelable
Return values
JSObjectof the new instance created

Definition at line 519 of file jsevent.cpp.

Variable Documentation

◆ AAMPJSEvent_object_def

const JSClassDefinition AAMPJSEvent_object_def
static
Initial value:
=
{
0,
kJSClassAttributeNone,
"__Event_AAMPJS",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

Structure contains properties and callbacks of Event object of AAMP_JSController.

Definition at line 489 of file jsevent.cpp.