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

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

#include <JavaScriptCore/JavaScript.h>
Include dependency graph for jsevent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

yes

JavaScript Event Impl for AAMP_JSController and AAMPMediaPlayer_JS.

Definition in file jsevent.h.

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.