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

#include <JNIMainActivity.h>

Inheritance diagram for jni::CJNIMainActivity:
CXBMCApp

Public Member Functions

 CJNIMainActivity (const ANativeActivity *nativeActivity)
 
 ~CJNIMainActivity () override
 
CJNIRect getDisplayRect ()
 

Static Public Member Functions

static CJNIMainActivityGetAppInstance ()
 
static void RegisterNatives (JNIEnv *env)
 
static void _onNewIntent (JNIEnv *env, jobject context, jobject intent)
 
static void _onActivityResult (JNIEnv *env, jobject context, jint requestCode, jint resultCode, jobject resultData)
 
static void _onVolumeChanged (JNIEnv *env, jobject context, jint volume)
 
static void _doFrame (JNIEnv *env, jobject context, jlong frameTimeNanos)
 
static void _onInputDeviceAdded (JNIEnv *env, jobject context, jint deviceId)
 
static void _onInputDeviceChanged (JNIEnv *env, jobject context, jint deviceId)
 
static void _onInputDeviceRemoved (JNIEnv *env, jobject context, jint deviceId)
 
static void _onVisibleBehindCanceled (JNIEnv *env, jobject context)
 
static void _callNative (JNIEnv *env, jobject context, jlong funcAddr, jlong variantAddr)
 
static void runNativeOnUiThread (void(*callback)(void *), void *variant)
 
static void registerMediaButtonEventReceiver ()
 
static void unregisterMediaButtonEventReceiver ()
 

Protected Member Functions

virtual void onNewIntent (CJNIIntent intent)=0
 
virtual void onActivityResult (int requestCode, int resultCode, CJNIIntent resultData)=0
 
virtual void onVolumeChanged (int volume)=0
 
virtual void doFrame (int64_t frameTimeNanos)=0
 
void onVisibleBehindCanceled () override=0
 
virtual void onDisplayAdded (int displayId)=0
 
virtual void onDisplayChanged (int displayId)=0
 
virtual void onDisplayRemoved (int displayId)=0
 

Constructor & Destructor Documentation

◆ CJNIMainActivity()

CJNIMainActivity::CJNIMainActivity ( const ANativeActivity * nativeActivity)
explicit

◆ ~CJNIMainActivity()

CJNIMainActivity::~CJNIMainActivity ( )
override

Member Function Documentation

◆ _callNative()

void CJNIMainActivity::_callNative ( JNIEnv * env,
jobject context,
jlong funcAddr,
jlong variantAddr )
static

◆ _doFrame()

void CJNIMainActivity::_doFrame ( JNIEnv * env,
jobject context,
jlong frameTimeNanos )
static

◆ _onActivityResult()

void CJNIMainActivity::_onActivityResult ( JNIEnv * env,
jobject context,
jint requestCode,
jint resultCode,
jobject resultData )
static

◆ _onInputDeviceAdded()

void CJNIMainActivity::_onInputDeviceAdded ( JNIEnv * env,
jobject context,
jint deviceId )
static

◆ _onInputDeviceChanged()

void CJNIMainActivity::_onInputDeviceChanged ( JNIEnv * env,
jobject context,
jint deviceId )
static

◆ _onInputDeviceRemoved()

void CJNIMainActivity::_onInputDeviceRemoved ( JNIEnv * env,
jobject context,
jint deviceId )
static

◆ _onNewIntent()

void CJNIMainActivity::_onNewIntent ( JNIEnv * env,
jobject context,
jobject intent )
static

◆ _onVisibleBehindCanceled()

void CJNIMainActivity::_onVisibleBehindCanceled ( JNIEnv * env,
jobject context )
static

◆ _onVolumeChanged()

void CJNIMainActivity::_onVolumeChanged ( JNIEnv * env,
jobject context,
jint volume )
static

◆ doFrame()

virtual void jni::CJNIMainActivity::doFrame ( int64_t frameTimeNanos)
protectedpure virtual

Implemented in CXBMCApp.

◆ GetAppInstance()

static CJNIMainActivity * jni::CJNIMainActivity::GetAppInstance ( )
inlinestatic

◆ getDisplayRect()

CJNIRect CJNIMainActivity::getDisplayRect ( )

◆ onActivityResult()

virtual void jni::CJNIMainActivity::onActivityResult ( int requestCode,
int resultCode,
CJNIIntent resultData )
protectedpure virtual

Implemented in CXBMCApp.

◆ onDisplayAdded()

virtual void jni::CJNIMainActivity::onDisplayAdded ( int displayId)
protectedpure virtual

Implemented in CXBMCApp.

◆ onDisplayChanged()

virtual void jni::CJNIMainActivity::onDisplayChanged ( int displayId)
protectedpure virtual

Implemented in CXBMCApp.

◆ onDisplayRemoved()

virtual void jni::CJNIMainActivity::onDisplayRemoved ( int displayId)
protectedpure virtual

Implemented in CXBMCApp.

◆ onNewIntent()

virtual void jni::CJNIMainActivity::onNewIntent ( CJNIIntent intent)
protectedpure virtual

Implemented in CXBMCApp.

◆ onVisibleBehindCanceled()

void jni::CJNIMainActivity::onVisibleBehindCanceled ( )
overrideprotectedpure virtual

Implemented in CXBMCApp.

◆ onVolumeChanged()

virtual void jni::CJNIMainActivity::onVolumeChanged ( int volume)
protectedpure virtual

Implemented in CXBMCApp.

◆ registerMediaButtonEventReceiver()

void CJNIMainActivity::registerMediaButtonEventReceiver ( )
static

◆ RegisterNatives()

void CJNIMainActivity::RegisterNatives ( JNIEnv * env)
static

◆ runNativeOnUiThread()

void CJNIMainActivity::runNativeOnUiThread ( void(* callback )(void *),
void * variant )
static

◆ unregisterMediaButtonEventReceiver()

void CJNIMainActivity::unregisterMediaButtonEventReceiver ( )
static

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