kodi
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
CXBMCApp Class Reference
Inheritance diagram for CXBMCApp:
Inheritance graph
[legend]
Collaboration diagram for CXBMCApp:
Collaboration graph
[legend]

Public Member Functions

void Announce (ANNOUNCEMENT::AnnouncementFlag flag, const std::string &sender, const std::string &message, const CVariant &data) override
 
void onReceive (CJNIIntent intent) override
 
void onNewIntent (CJNIIntent intent) override
 
void onActivityResult (int requestCode, int resultCode, CJNIIntent resultData) override
 
void onVolumeChanged (int volume) override
 
virtual void onAudioFocusChange (int focusChange)
 
void doFrame (int64_t frameTimeNanos) override
 
void onVisibleBehindCanceled () override
 
void onInputDeviceAdded (int deviceId) override
 
void onInputDeviceChanged (int deviceId) override
 
void onInputDeviceRemoved (int deviceId) override
 
void onDisplayAdded (int displayId) override
 
void onDisplayChanged (int displayId) override
 
void onDisplayRemoved (int displayId) override
 
jni::jhobject getDisplayListener ()
 
bool isValid ()
 
void onStart () override
 
void onResume () override
 
void onPause () override
 
void onStop () override
 
void onDestroy () override
 
void onSaveState (void **data, size_t *size) override
 
void onConfigurationChanged () override
 
void onLowMemory () override
 
void onCreateWindow (ANativeWindow *window) override
 
void onResizeWindow () override
 
void onDestroyWindow () override
 
void onGainFocus () override
 
void onLostFocus () override
 
void Initialize ()
 
void Deinitialize ()
 
bool Stop (int exitCode)
 
void Quit ()
 
std::shared_ptr< CNativeWindowGetNativeWindow (int timeout) const
 
bool SetBuffersGeometry (int width, int height, int format)
 
int GetBatteryLevel () const
 
void KeepScreenOn (bool on)
 
bool HasFocus () const
 
std::vector< androidPackageGetApplications () const
 
void SetDisplayMode (int mode, float rate)
 
int GetDPI () const
 
CRect MapRenderToDroid (const CRect &srcRect)
 
void OnPlayBackStarted ()
 
void OnPlayBackPaused ()
 
void OnPlayBackStopped ()
 
void UpdateSessionMetadata ()
 
void UpdateSessionState ()
 
void RegisterInputDeviceCallbacks (IInputDeviceCallbacks *handler)
 
void UnregisterInputDeviceCallbacks ()
 
void RegisterInputDeviceEventHandler (IInputDeviceEventHandler *handler)
 
void UnregisterInputDeviceEventHandler ()
 
bool onInputDeviceEvent (const AInputEvent *event)
 
void InitFrameCallback (CVideoSyncAndroid *syncImpl)
 
void DeinitFrameCallback ()
 
void ProcessSlow ()
 
bool WaitVSync (unsigned int milliSeconds)
 
int64_t GetNextFrameTime () const
 
float GetFrameLatencyMs () const
 
bool getVideosurfaceInUse ()
 
void setVideosurfaceInUse (bool videosurfaceInUse)
 
bool GetMemoryInfo (long &availMem, long &totalMem)
 
void surfaceChanged (CJNISurfaceHolder holder, int format, int width, int height) override
 
void surfaceCreated (CJNISurfaceHolder holder) override
 
void surfaceDestroyed (CJNISurfaceHolder holder) override
 
- Public Member Functions inherited from jni::CJNIMainActivity
 CJNIMainActivity (const ANativeActivity *nativeActivity)
 
CJNIRect getDisplayRect ()
 

Static Public Member Functions

static CXBMCAppCreate (ANativeActivity *nativeActivity, IInputHandler &inputhandler)
 
static CXBMCAppGet ()
 
static void Destroy ()
 
static int android_printf (const char *format,...)
 
static bool StartActivity (const std::string &package, const std::string &intent=std::string(), const std::string &dataType=std::string(), const std::string &dataURI=std::string(), const std::string &flags=std::string(), const std::string &extras=std::string(), const std::string &action=std::string(), const std::string &category=std::string(), const std::string &className=std::string())
 
static bool GetExternalStorage (std::string &path, const std::string &type="")
 If external storage is available, it returns the path for the external storage (for the specified type) More...
 
static bool GetStorageUsage (const std::string &path, std::string &usage)
 
static int GetMaxSystemVolume ()
 
static float GetSystemVolume ()
 
static void SetSystemVolume (float percent)
 
static const CJNIViewInputDevice GetInputDevice (int deviceId)
 
static std::vector< int > GetInputDeviceIds ()
 
- Static Public Member Functions inherited from jni::CJNIMainActivity
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

bool AcquireAudioFocus ()
 
bool ReleaseAudioFocus ()
 
void RequestVisibleBehind (bool requested)
 

Static Protected Member Functions

static int GetMaxSystemVolume (JNIEnv *env)
 

Friends

class CAESinkAUDIOTRACK
 

Member Function Documentation

◆ GetExternalStorage()

bool CXBMCApp::GetExternalStorage ( std::string &  path,
const std::string &  type = "" 
)
static

If external storage is available, it returns the path for the external storage (for the specified type)

Parameters
pathwill contain the path of the external storage (for the specified type)
typeoptional type. Possible values are "", "files", "music", "videos", "pictures", "photos, "downloads"
Returns
true if external storage is available and a valid path has been stored in the path parameter

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