Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
CJNIXBMCMainView Class Reference

#include <JNIXBMCMainView.h>

Inheritance diagram for CJNIXBMCMainView:

Public Member Functions

 CJNIXBMCMainView (CJNISurfaceHolderCallback *callback)
 
 ~CJNIXBMCMainView ()
 
void surfaceChanged (CJNISurfaceHolder holder, int format, int width, int height)
 
void surfaceCreated (CJNISurfaceHolder holder)
 
void surfaceDestroyed (CJNISurfaceHolder holder)
 
void attach (const jobject &thiz)
 
bool waitForSurface (unsigned int millis)
 
bool isActive ()
 
CJNISurface getSurface ()
 
bool isCreated () const
 

Static Public Member Functions

static void RegisterNatives (JNIEnv *env)
 

Static Protected Member Functions

static void _attach (JNIEnv *env, jobject thiz)
 
static void _surfaceChanged (JNIEnv *env, jobject thiz, jobject holder, jint format, jint width, jint height)
 
static void _surfaceCreated (JNIEnv *env, jobject thiz, jobject holder)
 
static void _surfaceDestroyed (JNIEnv *env, jobject thiz, jobject holder)
 

Protected Attributes

CJNISurfaceHolderCallback * m_callback
 

Static Protected Attributes

static CJNIXBMCMainViewm_instance = nullptr
 
static CEvent m_surfaceCreated
 

Constructor & Destructor Documentation

§ CJNIXBMCMainView()

CJNIXBMCMainView::CJNIXBMCMainView ( CJNISurfaceHolderCallback *  callback)

§ ~CJNIXBMCMainView()

CJNIXBMCMainView::~CJNIXBMCMainView ( )

Member Function Documentation

§ _attach()

void CJNIXBMCMainView::_attach ( JNIEnv env,
jobject  thiz 
)
staticprotected

§ _surfaceChanged()

void CJNIXBMCMainView::_surfaceChanged ( JNIEnv env,
jobject  thiz,
jobject  holder,
jint  format,
jint  width,
jint  height 
)
staticprotected

§ _surfaceCreated()

void CJNIXBMCMainView::_surfaceCreated ( JNIEnv env,
jobject  thiz,
jobject  holder 
)
staticprotected

§ _surfaceDestroyed()

void CJNIXBMCMainView::_surfaceDestroyed ( JNIEnv env,
jobject  thiz,
jobject  holder 
)
staticprotected

§ attach()

void CJNIXBMCMainView::attach ( const jobject &  thiz)

§ getSurface()

CJNISurface CJNIXBMCMainView::getSurface ( )

§ isActive()

bool CJNIXBMCMainView::isActive ( )
inline

§ isCreated()

bool CJNIXBMCMainView::isCreated ( ) const

§ RegisterNatives()

void CJNIXBMCMainView::RegisterNatives ( JNIEnv env)
static

§ surfaceChanged()

void CJNIXBMCMainView::surfaceChanged ( CJNISurfaceHolder  holder,
int  format,
int  width,
int  height 
)

§ surfaceCreated()

void CJNIXBMCMainView::surfaceCreated ( CJNISurfaceHolder  holder)

§ surfaceDestroyed()

void CJNIXBMCMainView::surfaceDestroyed ( CJNISurfaceHolder  holder)

§ waitForSurface()

bool CJNIXBMCMainView::waitForSurface ( unsigned int  millis)

Member Data Documentation

§ m_callback

CJNISurfaceHolderCallback* CJNIXBMCMainView::m_callback
protected

§ m_instance

CJNIXBMCMainView * CJNIXBMCMainView::m_instance = nullptr
staticprotected

§ m_surfaceCreated

CEvent CJNIXBMCMainView::m_surfaceCreated
staticprotected

The documentation for this class was generated from the following files: