Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
jni::CJNIXBMCMainView Class Reference

#include <JNIXBMCMainView.h>

Inheritance diagram for jni::CJNIXBMCMainView:

Public Member Functions

 CJNIXBMCMainView (CJNISurfaceHolderCallback *callback)
 
 ~CJNIXBMCMainView () override=default
 
void surfaceChanged (CJNISurfaceHolder holder, int format, int width, int height) override
 
void surfaceCreated (CJNISurfaceHolder holder) override
 
void surfaceDestroyed (CJNISurfaceHolder holder) override
 
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()

jni::CJNIXBMCMainView::~CJNIXBMCMainView ( )
overridedefault

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 jni::CJNIXBMCMainView::getSurface ( )

◆ isActive()

bool jni::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 )
override

◆ surfaceCreated()

void CJNIXBMCMainView::surfaceCreated ( CJNISurfaceHolder holder)
override

◆ surfaceDestroyed()

void CJNIXBMCMainView::surfaceDestroyed ( CJNISurfaceHolder holder)
override

◆ waitForSurface()

bool CJNIXBMCMainView::waitForSurface ( unsigned int millis)

Member Data Documentation

◆ m_callback

CJNISurfaceHolderCallback* jni::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: