PixelLightAPI  .
Static Public Member Functions | Static Public Attributes
PLCore::SystemAndroid Class Reference

Android 'System' implementation. More...

#include <SystemAndroid.h>

List of all members.

Static Public Member Functions

static android_appGetAndroidApp ()
 Returns the native Android application.
static void SetAndroidApp (android_app *pAndroidApp)
 Sets the native Android application.
static AAssetManagerGetAssetManager ()
 Returns the Android asset manager.
static void SetAssetManager (AAssetManager *pAAssetManager)
 Sets the Android asset manager.
static PLCORE_API void EmitInputEvent (const struct AInputEvent &sAInputEvent)
 Emit Android input event.
static bool GetConsoleToKernelLog ()
 Returns whether or not console messages are also written into the Android in-kernel log buffer (use Androids "logcat" utility to access this system log)
static void SetConsoleToKernelLog (bool bConsoleToKernelLog)
 Sets whether or not console messages are also written into the Android in-kernel log buffer (use Androids "logcat" utility to access this system log)

Static Public Attributes

static PLCORE_API Event< const
struct AInputEvent & > 
EventInputEvent

Detailed Description

Android 'System' implementation.


Member Function Documentation

Returns the native Android application.

Returns:
The native Android application, can be a null pointer, do not delete the returned instance
void PLCore::SystemAndroid::SetAndroidApp ( android_app pAndroidApp) [inline, static]

Sets the native Android application.

Parameters:
[in]pAndroidAppNative Android application, can be a null pointer, the given instance is just shared and not destroyed by this class

Returns the Android asset manager.

Returns:
The Android asset manager, can be a null pointer, do not delete the returned instance
Note:
  • Information can also be received thru the native Android application pointer received via "GetAndroidApp()" (native Android activity only, that's why this special asset manager method exists in here)
void PLCore::SystemAndroid::SetAssetManager ( AAssetManager pAAssetManager) [inline, static]

Sets the Android asset manager.

Parameters:
[in]pAAssetManagerAndroid asset manager, can be a null pointer, the given instance is just shared and not destroyed by this class
static PLCORE_API void PLCore::SystemAndroid::EmitInputEvent ( const struct AInputEvent sAInputEvent) [static]

Emit Android input event.

Parameters:
[in]sAInputEventAndroid input event to emit

Returns whether or not console messages are also written into the Android in-kernel log buffer (use Androids "logcat" utility to access this system log)

Returns:
'true' if console messages are also written into the Android in-kernel log buffer, else 'false'
void PLCore::SystemAndroid::SetConsoleToKernelLog ( bool  bConsoleToKernelLog) [inline, static]

Sets whether or not console messages are also written into the Android in-kernel log buffer (use Androids "logcat" utility to access this system log)

Parameters:
[in]bConsoleToKernelLog'true' if console messages are also written into the Android in-kernel log buffer, else 'false', default is 'false'

Member Data Documentation

PLCORE_API Event<const struct AInputEvent&> PLCore::SystemAndroid::EventInputEvent [static]

Android input event, input event to be processed as first parameter


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:28
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported