Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
class CInterfaceAndroidSystem

Detailed Description

Android platform specific functions
C++ class to query Android specific things in Kodi.

It has the header is #include <kodi/platform/android/System.h>.


Example:

#include <kodi/platform/android/System.h>
#if defined(ANDROID)
if (system.GetSDKVersion() >= 23)
{
...
}
#endif
int GetSDKVersion()
Request the android sdk version to e.g. initialize JNIBase.
Definition System.h:78

Function Documentation

◆ GetJNIEnv()

void * GetJNIEnv ( )
inline

Request an JNI env pointer for the calling thread.

JNI env has to be controlled by kodi because of the underlying threading concep.

Returns
JNI env pointer for the calling thread

◆ GetSDKVersion()

int GetSDKVersion ( )
inline

Request the android sdk version to e.g. initialize JNIBase.

Returns
Android SDK version

◆ GetClassName()

std::string GetClassName ( )
inline

Request the android main class name e.g. org.xbmc.kodi.

Returns
package class name