|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
26 #ifndef __AAMP_JSEVENTLISTENER__H__
27 #define __AAMP_JSEVENTLISTENER__H__
30 #include "jsbindings.h"
84 void Event(
const AAMPEventPtr& e);
86 virtual void SetEventProperties(
const AAMPEventPtr& ev, JSObjectRef jsEventObj)
Private data structure for JS binding object.
Class for AAMP event listening Uses shared_ptr for event objects for better memory management New AAM...
~AAMP_JSEventListener()
AAMP_JSEventListener Destructor.
Event listener impl for AAMPMediaPlayer_JS object.
static void RemoveEventListener(PrivAAMPStruct_JS *obj, AAMPEventType type, JSObjectRef jsCallback)
Removes a JS listener for a particular event.
AAMP_JSEventListener(PrivAAMPStruct_JS *obj, AAMPEventType type, JSObjectRef jsCallback)
AAMP_JSEventListener Constructor.
void Event(const AAMPEventPtr &e)
Callback invoked for dispatching event.
AAMP_JSEventListener & operator=(const AAMP_JSEventListener &)=delete
assignment operator disabled
PrivAAMPStruct_JS * p_obj
static void RemoveAllEventListener(PrivAAMPStruct_JS *obj)
Remove all JS listeners registered.
AAMPEventType
Type of the events sending to the JSPP player.
static void AddEventListener(PrivAAMPStruct_JS *obj, AAMPEventType type, JSObjectRef jsCallback)
Adds a JS function as listener for a particular event.