VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
Native callback functions

Native callback functions loaded for and used by the Android activity. More...

Functions

static void AndroidActivity::onCreate (JNIEnv *jni, jobject activity)
 Android activity onCreate lifecycle callback. More...
 
static void AndroidActivity::onStart ()
 Android activity onStart lifecycle callback. More...
 
static void AndroidActivity::onResume ()
 Android activity onResume lifecycle callback. More...
 
static void AndroidActivity::onPause ()
 Android activity onPause lifecycle callback. More...
 
static void AndroidActivity::onStop ()
 Android activity onStop lifecycle callback. More...
 
static void AndroidActivity::onDestroy (JNIEnv *jni, jobject activity)
 Android activity onDestroy lifecycle callback. More...
 
static void AndroidActivity::onControllerDisconnect (JNIEnv *, jobject, int deviceId)
 Android activity onControllerDisconnect callback indicating that a device identified by deviceId has disconnected. More...
 
static bool AndroidActivity::onGamepadMotionEvent (JNIEnv *jni, jobject, jobject motionEvent)
 Android activity onGamepadMotionEvent callback for an Android MotionEvent that originated from a gamepad device. More...
 
static bool AndroidActivity::onGamepadKeyEvent (JNIEnv *jni, jobject, jobject keyEvent)
 Android activity onGamepadKeyEvent callback for an Android KeyEvent that originated from a gamepad device. More...
 
static bool AndroidActivity::onTouchNavigationMotionEvent (JNIEnv *jni, jobject, jobject motionEvent)
 Android activity onTouchNavigationMotionEvent callback for an Android MotionEvent that originated from a touch navigation device. More...
 
static bool AndroidActivity::onTouchNavigationKeyEvent (JNIEnv *jni, jobject, jobject keyEvent)
 Android activity onTouchNavigationKeyEvent callback for an Android KeyEvent that originated from a touch navigation device. More...
 
static bool AndroidActivity::onKeyboardKeyEvent (JNIEnv *jni, jobject, jobject keyEvent)
 Android activity onKeyboardKeyEvent callback for an Android KeyEvent that originated from a keyboard device. More...
 
static void AndroidActivity::onSignedIntoCloudChanged (JNIEnv *, jobject, bool signedIntoCloud)
 Android activity onSignedIntoCloudChanged callback indicating that cloud (i.e. GPGS) sign-in status has changed. More...
 
static void AndroidActivity::onCloudDataLoaded (JNIEnv *jni, jobject, int statusCode, jstring javaData)
 Android activity onCloudDataLoaded callback when cloud (i.e. GPGS) save data has been loaded. More...
 
static jstring AndroidActivity::onCloudDataConflict (JNIEnv *jni, jobject, jstring local, jstring cloud)
 Android activity onCloudDataConflict callback indicating a conflict of cloud (i.e. GPGS) save data has been detected while loading. More...
 

Detailed Description

Native callback functions loaded for and used by the Android activity.

All JNINativeMethod functions will be registered and loaded into the JVM in JNI_OnLoad.

Function Documentation

static jstring AndroidActivity::onCloudDataConflict ( JNIEnv *  jni,
jobject  ,
jstring  local,
jstring  cloud 
)
static

Android activity onCloudDataConflict callback indicating a conflict of cloud (i.e. GPGS) save data has been detected while loading.

Parameters
jniCurrent JNI environment
localUTF-8 encoded local save game data that is in conflict
cloudUTF-8 encoded cloud save game data that is in conflict
Returns
UTF-8 encoded save game data resolution
static void AndroidActivity::onCloudDataLoaded ( JNIEnv *  jni,
jobject  ,
int  statusCode,
jstring  javaData 
)
static

Android activity onCloudDataLoaded callback when cloud (i.e. GPGS) save data has been loaded.

Parameters
jniCurrent JNI environment
statusCodeStatus code indicating load result and possible errors
javaDataUTF-8 encoded loaded save game data or null if loading error occurred
static void AndroidActivity::onControllerDisconnect ( JNIEnv *  ,
jobject  ,
int  deviceId 
)
static

Android activity onControllerDisconnect callback indicating that a device identified by deviceId has disconnected.

Parameters
deviceIdId of hardware device which has become disconnected
static void AndroidActivity::onCreate ( JNIEnv *  jni,
jobject  activity 
)
static

Android activity onCreate lifecycle callback.

Parameters
jniCurrent JNI environment
activityObject reference to invoking Android activity
static void AndroidActivity::onDestroy ( JNIEnv *  jni,
jobject  activity 
)
static

Android activity onDestroy lifecycle callback.

Parameters
jniCurrent JNI environment
activityObject reference to invoking Android activity
static bool AndroidActivity::onGamepadKeyEvent ( JNIEnv *  jni,
jobject  ,
jobject  keyEvent 
)
static

Android activity onGamepadKeyEvent callback for an Android KeyEvent that originated from a gamepad device.

Parameters
jniCurrent JNI environment
keyEventObject reference to the Android KeyEvent
Returns
true if the event was handled
static bool AndroidActivity::onGamepadMotionEvent ( JNIEnv *  jni,
jobject  ,
jobject  motionEvent 
)
static

Android activity onGamepadMotionEvent callback for an Android MotionEvent that originated from a gamepad device.

Parameters
jniCurrent JNI environment
motionEventObject reference to the Android MotionEvent
Returns
true if the event was handled
static bool AndroidActivity::onKeyboardKeyEvent ( JNIEnv *  jni,
jobject  ,
jobject  keyEvent 
)
static

Android activity onKeyboardKeyEvent callback for an Android KeyEvent that originated from a keyboard device.

Parameters
jniCurrent JNI environment
keyEventObject reference to the Android KeyEvent
Returns
true if the event was handled
static void AndroidActivity::onPause ( )
static

Android activity onPause lifecycle callback.

static void AndroidActivity::onResume ( )
static

Android activity onResume lifecycle callback.

static void AndroidActivity::onSignedIntoCloudChanged ( JNIEnv *  ,
jobject  ,
bool  signedIntoCloud 
)
static

Android activity onSignedIntoCloudChanged callback indicating that cloud (i.e. GPGS) sign-in status has changed.

Parameters
signedIntoCloudtrue if currently signed into the cloud
static void AndroidActivity::onStart ( )
static

Android activity onStart lifecycle callback.

static void AndroidActivity::onStop ( )
static

Android activity onStop lifecycle callback.

static bool AndroidActivity::onTouchNavigationKeyEvent ( JNIEnv *  jni,
jobject  ,
jobject  keyEvent 
)
static

Android activity onTouchNavigationKeyEvent callback for an Android KeyEvent that originated from a touch navigation device.

Parameters
jniCurrent JNI environment
keyEventObject reference to the Android KeyEvent
Returns
true if the event was handled
static bool AndroidActivity::onTouchNavigationMotionEvent ( JNIEnv *  jni,
jobject  ,
jobject  motionEvent 
)
static

Android activity onTouchNavigationMotionEvent callback for an Android MotionEvent that originated from a touch navigation device.

Parameters
jniCurrent JNI environment
motionEventObject reference to the Android MotionEvent
Returns
true if the event was handled