|
GameApi 28
Library used by GameApi Builder tool
|


Classes | |
| enum | NativeState |
| class | SDLCommandHandler |
| class | ShowTextInputTask |
Public Member Functions | |
| void | loadLibraries () |
| void | onWindowFocusChanged (boolean hasFocus) |
| void | onLowMemory () |
| void | onConfigurationChanged (Configuration newConfig) |
| void | onBackPressed () |
| void | pressBackButton () |
| void | superOnBackPressed () |
| boolean | dispatchKeyEvent (KeyEvent event) |
| void | setOrientationBis (int w, int h, boolean resizable, String hint) |
| int | messageboxShowMessageBox (final int flags, final String title, final String message, final int[] buttonFlags, final int[] buttonIds, final String[] buttonTexts, final int[] colors) |
| void | onSystemUiVisibilityChange (int visibility) |
| void | onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) |
| void | loadLibraries () |
| void | onWindowFocusChanged (boolean hasFocus) |
| void | onLowMemory () |
| void | onConfigurationChanged (Configuration newConfig) |
| void | onBackPressed () |
| void | pressBackButton () |
| void | superOnBackPressed () |
| boolean | dispatchKeyEvent (KeyEvent event) |
| void | setOrientationBis (int w, int h, boolean resizable, String hint) |
| int | messageboxShowMessageBox (final int flags, final String title, final String message, final int[] buttonFlags, final int[] buttonIds, final String[] buttonTexts, final int[] colors) |
| void | onSystemUiVisibilityChange (int visibility) |
| void | onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) |
Static Public Member Functions | |
| static void | initialize () |
| static int | getCurrentOrientation () |
| static void | manualBackButton () |
| static void | handleNativeState () |
| static native String | nativeGetVersion () |
| static native int | nativeSetupJNI () |
| static native int | nativeRunMain (String library, String function, Object arguments) |
| static native void | nativeLowMemory () |
| static native void | nativeSendQuit () |
| static native void | nativeQuit () |
| static native void | nativePause () |
| static native void | nativeResume () |
| static native void | nativeFocusChanged (boolean hasFocus) |
| static native void | onNativeDropFile (String filename) |
| static native void | nativeSetScreenResolution (int surfaceWidth, int surfaceHeight, int deviceWidth, int deviceHeight, float rate) |
| static native void | onNativeResize () |
| static native void | onNativeKeyDown (int keycode) |
| static native void | onNativeKeyUp (int keycode) |
| static native boolean | onNativeSoftReturnKey () |
| static native void | onNativeKeyboardFocusLost () |
| static native void | onNativeMouse (int button, int action, float x, float y, boolean relative) |
| static native void | onNativeTouch (int touchDevId, int pointerFingerId, int action, float x, float y, float p) |
| static native void | onNativeAccel (float x, float y, float z) |
| static native void | onNativeClipboardChanged () |
| static native void | onNativeSurfaceCreated () |
| static native void | onNativeSurfaceChanged () |
| static native void | onNativeSurfaceDestroyed () |
| static native String | nativeGetHint (String name) |
| static native boolean | nativeGetHintBoolean (String name, boolean default_value) |
| static native void | nativeSetenv (String name, String value) |
| static native void | onNativeOrientationChanged (int orientation) |
| static native void | nativeAddTouch (int touchId, String name) |
| static native void | nativePermissionResult (int requestCode, boolean result) |
| static native void | onNativeLocaleChanged () |
| static boolean | setActivityTitle (String title) |
| static void | setWindowStyle (boolean fullscreen) |
| static void | setOrientation (int w, int h, boolean resizable, String hint) |
| static void | minimizeWindow () |
| static boolean | shouldMinimizeOnFocusLoss () |
| static boolean | isScreenKeyboardShown () |
| static boolean | supportsRelativeMouse () |
| static boolean | setRelativeMouseEnabled (boolean enabled) |
| static boolean | sendMessage (int command, int param) |
| static Context | getContext () |
| static boolean | isAndroidTV () |
| static double | getDiagonal () |
| static boolean | isTablet () |
| static boolean | isChromebook () |
| static boolean | isDeXMode () |
| static DisplayMetrics | getDisplayDPI () |
| static boolean | getManifestEnvironmentVariables () |
| static View | getContentView () |
| static boolean | showTextInput (int x, int y, int w, int h) |
| static boolean | isTextInputEvent (KeyEvent event) |
| static boolean | handleKeyEvent (View v, int keyCode, KeyEvent event, InputConnection ic) |
| static Surface | getNativeSurface () |
| static void | initTouch () |
| static boolean | clipboardHasText () |
| static String | clipboardGetText () |
| static void | clipboardSetText (String string) |
| static int | createCustomCursor (int[] colors, int width, int height, int hotSpotX, int hotSpotY) |
| static void | destroyCustomCursor (int cursorID) |
| static boolean | setCustomCursor (int cursorID) |
| static boolean | setSystemCursor (int cursorID) |
| static void | requestPermission (String permission, int requestCode) |
| static int | openURL (String url) |
| static int | showToast (String message, int duration, int gravity, int xOffset, int yOffset) |
| static void | initialize () |
| static int | getCurrentOrientation () |
| static void | manualBackButton () |
| static void | handleNativeState () |
| static native String | nativeGetVersion () |
| static native int | nativeSetupJNI () |
| static native int | nativeRunMain (String library, String function, Object arguments) |
| static native void | nativeLowMemory () |
| static native void | nativeSendQuit () |
| static native void | nativeQuit () |
| static native void | nativePause () |
| static native void | nativeResume () |
| static native void | nativeFocusChanged (boolean hasFocus) |
| static native void | onNativeDropFile (String filename) |
| static native void | nativeSetScreenResolution (int surfaceWidth, int surfaceHeight, int deviceWidth, int deviceHeight, float rate) |
| static native void | onNativeResize () |
| static native void | onNativeKeyDown (int keycode) |
| static native void | onNativeKeyUp (int keycode) |
| static native boolean | onNativeSoftReturnKey () |
| static native void | onNativeKeyboardFocusLost () |
| static native void | onNativeMouse (int button, int action, float x, float y, boolean relative) |
| static native void | onNativeTouch (int touchDevId, int pointerFingerId, int action, float x, float y, float p) |
| static native void | onNativeAccel (float x, float y, float z) |
| static native void | onNativeClipboardChanged () |
| static native void | onNativeSurfaceCreated () |
| static native void | onNativeSurfaceChanged () |
| static native void | onNativeSurfaceDestroyed () |
| static native String | nativeGetHint (String name) |
| static native boolean | nativeGetHintBoolean (String name, boolean default_value) |
| static native void | nativeSetenv (String name, String value) |
| static native void | onNativeOrientationChanged (int orientation) |
| static native void | nativeAddTouch (int touchId, String name) |
| static native void | nativePermissionResult (int requestCode, boolean result) |
| static native void | onNativeLocaleChanged () |
| static boolean | setActivityTitle (String title) |
| static void | setWindowStyle (boolean fullscreen) |
| static void | setOrientation (int w, int h, boolean resizable, String hint) |
| static void | minimizeWindow () |
| static boolean | shouldMinimizeOnFocusLoss () |
| static boolean | isScreenKeyboardShown () |
| static boolean | supportsRelativeMouse () |
| static boolean | setRelativeMouseEnabled (boolean enabled) |
| static boolean | sendMessage (int command, int param) |
| static Context | getContext () |
| static boolean | isAndroidTV () |
| static double | getDiagonal () |
| static boolean | isTablet () |
| static boolean | isChromebook () |
| static boolean | isDeXMode () |
| static DisplayMetrics | getDisplayDPI () |
| static boolean | getManifestEnvironmentVariables () |
| static View | getContentView () |
| static boolean | showTextInput (int x, int y, int w, int h) |
| static boolean | isTextInputEvent (KeyEvent event) |
| static boolean | handleKeyEvent (View v, int keyCode, KeyEvent event, InputConnection ic) |
| static Surface | getNativeSurface () |
| static void | initTouch () |
| static boolean | clipboardHasText () |
| static String | clipboardGetText () |
| static void | clipboardSetText (String string) |
| static int | createCustomCursor (int[] colors, int width, int height, int hotSpotX, int hotSpotY) |
| static void | destroyCustomCursor (int cursorID) |
| static boolean | setCustomCursor (int cursorID) |
| static boolean | setSystemCursor (int cursorID) |
| static void | requestPermission (String permission, int requestCode) |
| static int | openURL (String url) |
| static int | showToast (String message, int duration, int gravity, int xOffset, int yOffset) |
Static Public Attributes | |
| static boolean | mIsResumedCalled |
| static boolean | mHasFocus |
| static final boolean | mHasMultiWindow = (Build.VERSION.SDK_INT >= 24 ) |
| static NativeState | mNextNativeState |
| static NativeState | mCurrentNativeState |
| static boolean | mBrokenLibraries = true |
Protected Member Functions | |
| String | getMainSharedObject () |
| String | getMainFunction () |
| String[] | getLibraries () |
| String[] | getArguments () |
| SDLSurface | createSDLSurface (Context context) |
| void | onCreate (Bundle savedInstanceState) |
| void | pauseNativeThread () |
| void | resumeNativeThread () |
| void | onPause () |
| void | onResume () |
| void | onStop () |
| void | onStart () |
| void | onDestroy () |
| boolean | onUnhandledMessage (int command, Object param) |
| void | messageboxCreateAndShow (Bundle args) |
| String | getMainSharedObject () |
| String | getMainFunction () |
| String[] | getLibraries () |
| String[] | getArguments () |
| SDLSurface | createSDLSurface (Context context) |
| void | onCreate (Bundle savedInstanceState) |
| void | pauseNativeThread () |
| void | resumeNativeThread () |
| void | onPause () |
| void | onResume () |
| void | onStop () |
| void | onStart () |
| void | onDestroy () |
| boolean | onUnhandledMessage (int command, Object param) |
| void | messageboxCreateAndShow (Bundle args) |
Static Protected Member Functions | |
| static SDLGenericMotionListener_API12 | getMotionListener () |
| static SDLGenericMotionListener_API12 | getMotionListener () |
Protected Attributes | |
| final int[] | messageboxSelection = new int[1] |
Static Protected Attributes | |
| static final int | SDL_ORIENTATION_UNKNOWN = 0 |
| static final int | SDL_ORIENTATION_LANDSCAPE = 1 |
| static final int | SDL_ORIENTATION_LANDSCAPE_FLIPPED = 2 |
| static final int | SDL_ORIENTATION_PORTRAIT = 3 |
| static final int | SDL_ORIENTATION_PORTRAIT_FLIPPED = 4 |
| static int | mCurrentOrientation |
| static Locale | mCurrentLocale |
| static SDLActivity | mSingleton |
| static SDLSurface | mSurface |
| static DummyEdit | mTextEdit |
| static boolean | mScreenKeyboardShown |
| static ViewGroup | mLayout |
| static SDLClipboardHandler | mClipboardHandler |
| static Hashtable< Integer, PointerIcon > | mCursors |
| static int | mLastCursorID |
| static SDLGenericMotionListener_API12 | mMotionListener |
| static HIDDeviceManager | mHIDDeviceManager |
| static Thread | mSDLThread |
| static final int | COMMAND_USER = 0x8000 |
| static boolean | mFullscreenModeActive |
SDL Activity
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inline |
|
inline |
|
inlineprotected |
This method is called by SDL before starting the native application thread. It can be overridden to provide the arguments after the application name. The default implementation returns an empty array. It never returns null.
|
inlineprotected |
This method is called by SDL before starting the native application thread. It can be overridden to provide the arguments after the application name. The default implementation returns an empty array. It never returns null.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |

|
inlinestatic |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlineprotected |
This method is called by SDL before loading the native shared libraries. It can be overridden to provide names of shared libraries to be loaded. The default implementation returns the defaults. It never returns null. An array returned by a new implementation must at least contain "SDL2". Also keep in mind that the order the libraries are loaded may matter.

|
inlineprotected |
This method is called by SDL before loading the native shared libraries. It can be overridden to provide names of shared libraries to be loaded. The default implementation returns the defaults. It never returns null. An array returned by a new implementation must at least contain "SDL2". Also keep in mind that the order the libraries are loaded may matter.
|
inlineprotected |
This method returns the name of the application entry point It can be overridden by derived classes.
|
inlineprotected |
This method returns the name of the application entry point It can be overridden by derived classes.
|
inlineprotected |
This method returns the name of the shared object with the application entry point It can be overridden by derived classes.
|
inlineprotected |
This method returns the name of the shared object with the application entry point It can be overridden by derived classes.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestaticprotected |

|
inlinestaticprotected |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |

|
inlinestatic |
|
inlinestatic |

|
inlinestatic |
|
inlinestatic |

|
inlinestatic |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |

|
inlinestatic |
|
inline |

|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlineprotected |

|
inlineprotected |
|
inline |
This method is called by SDL using JNI. Shows the messagebox from UI thread and block calling thread. buttonFlags, buttonIds and buttonTexts must have same length.
| buttonFlags | array containing flags for every button. |
| buttonIds | array containing id for every button. |
| buttonTexts | array containing text for every button. |
| colors | null for default or array of length 5 containing colors. |
|
inline |
This method is called by SDL using JNI. Shows the messagebox from UI thread and block calling thread. buttonFlags, buttonIds and buttonTexts must have same length.
| buttonFlags | array containing flags for every button. |
| buttonIds | array containing id for every button. |
| buttonTexts | array containing text for every button. |
| colors | null for default or array of length 5 containing colors. |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |
|
static |
|
static |

|
static |

|
static |

|
static |
|
static |

|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
static |

|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |
|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
static |

|
static |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inlineprotected |
This method is called by SDL if SDL did not handle a message itself. This happens if a received message contains an unsupported command. Method can be overwritten to handle Messages in a different class.
| command | the command of the message. |
| param | the parameter of the message. May be null. |
|
inlineprotected |
This method is called by SDL if SDL did not handle a message itself. This happens if a received message contains an unsupported command. Method can be overwritten to handle Messages in a different class.
| command | the command of the message. |
| param | the parameter of the message. May be null. |
|
inline |
|
inline |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlineprotected |

|
inlineprotected |
|
inline |
|
inline |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlineprotected |

|
inlineprotected |
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI. This is a static method for JNI convenience, it calls a non-static method so that is can be overridden
|
inlinestatic |
This method is called by SDL using JNI. This is a static method for JNI convenience, it calls a non-static method so that is can be overridden
|
inline |
This can be overridden
|
inline |
This can be overridden
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inlinestatic |
This method is called by SDL using JNI.
|
inline |

|
inline |
|
inlinestatic |
|
inlinestatic |
This method is called by SDL using JNI.
|
staticprotected |
|
static |
If shared libraries (e.g. SDL or the native application) could not be loaded.
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
protected |
Result of current messagebox. Also used for blocking the calling thread.
|
staticprotected |
|
static |
|
static |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |