GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
org.libsdl.app.SDLActivity Class Reference
Inheritance diagram for org.libsdl.app.SDLActivity:
Collaboration diagram for org.libsdl.app.SDLActivity:

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

Detailed Description

SDL Activity

Member Function Documentation

◆ clipboardGetText() [1/2]

String org.libsdl.app.SDLActivity.clipboardGetText ( )
inlinestatic

This method is called by SDL using JNI.

◆ clipboardGetText() [2/2]

String org.libsdl.app.SDLActivity.clipboardGetText ( )
inlinestatic

This method is called by SDL using JNI.

◆ clipboardHasText() [1/2]

boolean org.libsdl.app.SDLActivity.clipboardHasText ( )
inlinestatic

This method is called by SDL using JNI.

◆ clipboardHasText() [2/2]

boolean org.libsdl.app.SDLActivity.clipboardHasText ( )
inlinestatic

This method is called by SDL using JNI.

◆ clipboardSetText() [1/2]

void org.libsdl.app.SDLActivity.clipboardSetText ( String string)
inlinestatic

This method is called by SDL using JNI.

◆ clipboardSetText() [2/2]

void org.libsdl.app.SDLActivity.clipboardSetText ( String string)
inlinestatic

This method is called by SDL using JNI.

◆ createCustomCursor() [1/2]

int org.libsdl.app.SDLActivity.createCustomCursor ( int[] colors,
int width,
int height,
int hotSpotX,
int hotSpotY )
inlinestatic

This method is called by SDL using JNI.

◆ createCustomCursor() [2/2]

int org.libsdl.app.SDLActivity.createCustomCursor ( int[] colors,
int width,
int height,
int hotSpotX,
int hotSpotY )
inlinestatic

This method is called by SDL using JNI.

◆ createSDLSurface() [1/2]

SDLSurface org.libsdl.app.SDLActivity.createSDLSurface ( Context context)
inlineprotected

◆ createSDLSurface() [2/2]

SDLSurface org.libsdl.app.SDLActivity.createSDLSurface ( Context context)
inlineprotected

◆ destroyCustomCursor() [1/2]

void org.libsdl.app.SDLActivity.destroyCustomCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ destroyCustomCursor() [2/2]

void org.libsdl.app.SDLActivity.destroyCustomCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ dispatchKeyEvent() [1/2]

boolean org.libsdl.app.SDLActivity.dispatchKeyEvent ( KeyEvent event)
inline

◆ dispatchKeyEvent() [2/2]

boolean org.libsdl.app.SDLActivity.dispatchKeyEvent ( KeyEvent event)
inline

◆ getArguments() [1/2]

String[] org.libsdl.app.SDLActivity.getArguments ( )
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.

Returns
arguments for the native application.

◆ getArguments() [2/2]

String[] org.libsdl.app.SDLActivity.getArguments ( )
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.

Returns
arguments for the native application.

◆ getContentView() [1/2]

View org.libsdl.app.SDLActivity.getContentView ( )
inlinestatic

◆ getContentView() [2/2]

View org.libsdl.app.SDLActivity.getContentView ( )
inlinestatic

◆ getContext() [1/2]

Context org.libsdl.app.SDLActivity.getContext ( )
inlinestatic

This method is called by SDL using JNI.

Here is the caller graph for this function:

◆ getContext() [2/2]

Context org.libsdl.app.SDLActivity.getContext ( )
inlinestatic

This method is called by SDL using JNI.

◆ getCurrentOrientation() [1/2]

int org.libsdl.app.SDLActivity.getCurrentOrientation ( )
inlinestatic

◆ getCurrentOrientation() [2/2]

int org.libsdl.app.SDLActivity.getCurrentOrientation ( )
inlinestatic

◆ getDiagonal() [1/2]

double org.libsdl.app.SDLActivity.getDiagonal ( )
inlinestatic
Here is the caller graph for this function:

◆ getDiagonal() [2/2]

double org.libsdl.app.SDLActivity.getDiagonal ( )
inlinestatic

◆ getDisplayDPI() [1/2]

DisplayMetrics org.libsdl.app.SDLActivity.getDisplayDPI ( )
inlinestatic

This method is called by SDL using JNI.

◆ getDisplayDPI() [2/2]

DisplayMetrics org.libsdl.app.SDLActivity.getDisplayDPI ( )
inlinestatic

This method is called by SDL using JNI.

◆ getLibraries() [1/2]

String[] org.libsdl.app.SDLActivity.getLibraries ( )
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.

Returns
names of shared libraries to be loaded (e.g. "SDL2","freetype","GameApi","gameapi_cmdline", "main").
Here is the caller graph for this function:

◆ getLibraries() [2/2]

String[] org.libsdl.app.SDLActivity.getLibraries ( )
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.

Returns
names of shared libraries to be loaded (e.g. "SDL2", "main").

◆ getMainFunction() [1/2]

String org.libsdl.app.SDLActivity.getMainFunction ( )
inlineprotected

This method returns the name of the application entry point It can be overridden by derived classes.

◆ getMainFunction() [2/2]

String org.libsdl.app.SDLActivity.getMainFunction ( )
inlineprotected

This method returns the name of the application entry point It can be overridden by derived classes.

◆ getMainSharedObject() [1/2]

String org.libsdl.app.SDLActivity.getMainSharedObject ( )
inlineprotected

This method returns the name of the shared object with the application entry point It can be overridden by derived classes.

◆ getMainSharedObject() [2/2]

String org.libsdl.app.SDLActivity.getMainSharedObject ( )
inlineprotected

This method returns the name of the shared object with the application entry point It can be overridden by derived classes.

◆ getManifestEnvironmentVariables() [1/2]

boolean org.libsdl.app.SDLActivity.getManifestEnvironmentVariables ( )
inlinestatic

This method is called by SDL using JNI.

◆ getManifestEnvironmentVariables() [2/2]

boolean org.libsdl.app.SDLActivity.getManifestEnvironmentVariables ( )
inlinestatic

This method is called by SDL using JNI.

◆ getMotionListener() [1/2]

SDLGenericMotionListener_API12 org.libsdl.app.SDLActivity.getMotionListener ( )
inlinestaticprotected
Here is the caller graph for this function:

◆ getMotionListener() [2/2]

SDLGenericMotionListener_API12 org.libsdl.app.SDLActivity.getMotionListener ( )
inlinestaticprotected

◆ getNativeSurface() [1/2]

Surface org.libsdl.app.SDLActivity.getNativeSurface ( )
inlinestatic

This method is called by SDL using JNI.

◆ getNativeSurface() [2/2]

Surface org.libsdl.app.SDLActivity.getNativeSurface ( )
inlinestatic

This method is called by SDL using JNI.

◆ handleKeyEvent() [1/2]

boolean org.libsdl.app.SDLActivity.handleKeyEvent ( View v,
int keyCode,
KeyEvent event,
InputConnection ic )
inlinestatic
Here is the caller graph for this function:

◆ handleKeyEvent() [2/2]

boolean org.libsdl.app.SDLActivity.handleKeyEvent ( View v,
int keyCode,
KeyEvent event,
InputConnection ic )
inlinestatic

◆ handleNativeState() [1/2]

void org.libsdl.app.SDLActivity.handleNativeState ( )
inlinestatic
Here is the caller graph for this function:

◆ handleNativeState() [2/2]

void org.libsdl.app.SDLActivity.handleNativeState ( )
inlinestatic

◆ initialize() [1/2]

void org.libsdl.app.SDLActivity.initialize ( )
inlinestatic
Here is the caller graph for this function:

◆ initialize() [2/2]

void org.libsdl.app.SDLActivity.initialize ( )
inlinestatic

◆ initTouch() [1/2]

void org.libsdl.app.SDLActivity.initTouch ( )
inlinestatic

This method is called by SDL using JNI.

◆ initTouch() [2/2]

void org.libsdl.app.SDLActivity.initTouch ( )
inlinestatic

This method is called by SDL using JNI.

◆ isAndroidTV() [1/2]

boolean org.libsdl.app.SDLActivity.isAndroidTV ( )
inlinestatic

This method is called by SDL using JNI.

◆ isAndroidTV() [2/2]

boolean org.libsdl.app.SDLActivity.isAndroidTV ( )
inlinestatic

This method is called by SDL using JNI.

◆ isChromebook() [1/2]

boolean org.libsdl.app.SDLActivity.isChromebook ( )
inlinestatic

This method is called by SDL using JNI.

◆ isChromebook() [2/2]

boolean org.libsdl.app.SDLActivity.isChromebook ( )
inlinestatic

This method is called by SDL using JNI.

◆ isDeXMode() [1/2]

boolean org.libsdl.app.SDLActivity.isDeXMode ( )
inlinestatic

This method is called by SDL using JNI.

Here is the caller graph for this function:

◆ isDeXMode() [2/2]

boolean org.libsdl.app.SDLActivity.isDeXMode ( )
inlinestatic

This method is called by SDL using JNI.

◆ isScreenKeyboardShown() [1/2]

boolean org.libsdl.app.SDLActivity.isScreenKeyboardShown ( )
inlinestatic

This method is called by SDL using JNI.

◆ isScreenKeyboardShown() [2/2]

boolean org.libsdl.app.SDLActivity.isScreenKeyboardShown ( )
inlinestatic

This method is called by SDL using JNI.

◆ isTablet() [1/2]

boolean org.libsdl.app.SDLActivity.isTablet ( )
inlinestatic

This method is called by SDL using JNI.

◆ isTablet() [2/2]

boolean org.libsdl.app.SDLActivity.isTablet ( )
inlinestatic

This method is called by SDL using JNI.

◆ isTextInputEvent() [1/2]

boolean org.libsdl.app.SDLActivity.isTextInputEvent ( KeyEvent event)
inlinestatic
Here is the caller graph for this function:

◆ isTextInputEvent() [2/2]

boolean org.libsdl.app.SDLActivity.isTextInputEvent ( KeyEvent event)
inlinestatic

◆ loadLibraries() [1/2]

void org.libsdl.app.SDLActivity.loadLibraries ( )
inline
Here is the caller graph for this function:

◆ loadLibraries() [2/2]

void org.libsdl.app.SDLActivity.loadLibraries ( )
inline

◆ manualBackButton() [1/2]

void org.libsdl.app.SDLActivity.manualBackButton ( )
inlinestatic

◆ manualBackButton() [2/2]

void org.libsdl.app.SDLActivity.manualBackButton ( )
inlinestatic

◆ messageboxCreateAndShow() [1/2]

void org.libsdl.app.SDLActivity.messageboxCreateAndShow ( Bundle args)
inlineprotected
Here is the caller graph for this function:

◆ messageboxCreateAndShow() [2/2]

void org.libsdl.app.SDLActivity.messageboxCreateAndShow ( Bundle args)
inlineprotected

◆ messageboxShowMessageBox() [1/2]

int org.libsdl.app.SDLActivity.messageboxShowMessageBox ( final int flags,
final String title,
final String message,
final int[] buttonFlags,
final int[] buttonIds,
final String[] buttonTexts,
final int[] 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.

Parameters
buttonFlagsarray containing flags for every button.
buttonIdsarray containing id for every button.
buttonTextsarray containing text for every button.
colorsnull for default or array of length 5 containing colors.
Returns
button id or -1.

◆ messageboxShowMessageBox() [2/2]

int org.libsdl.app.SDLActivity.messageboxShowMessageBox ( final int flags,
final String title,
final String message,
final int[] buttonFlags,
final int[] buttonIds,
final String[] buttonTexts,
final int[] 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.

Parameters
buttonFlagsarray containing flags for every button.
buttonIdsarray containing id for every button.
buttonTextsarray containing text for every button.
colorsnull for default or array of length 5 containing colors.
Returns
button id or -1.

◆ minimizeWindow() [1/2]

void org.libsdl.app.SDLActivity.minimizeWindow ( )
inlinestatic

This method is called by SDL using JNI.

◆ minimizeWindow() [2/2]

void org.libsdl.app.SDLActivity.minimizeWindow ( )
inlinestatic

This method is called by SDL using JNI.

◆ nativeAddTouch() [1/2]

native void org.libsdl.app.SDLActivity.nativeAddTouch ( int touchId,
String name )
static
Here is the caller graph for this function:

◆ nativeAddTouch() [2/2]

native void org.libsdl.app.SDLActivity.nativeAddTouch ( int touchId,
String name )
static

◆ nativeFocusChanged() [1/2]

native void org.libsdl.app.SDLActivity.nativeFocusChanged ( boolean hasFocus)
static
Here is the caller graph for this function:

◆ nativeFocusChanged() [2/2]

native void org.libsdl.app.SDLActivity.nativeFocusChanged ( boolean hasFocus)
static

◆ nativeGetHint() [1/2]

native String org.libsdl.app.SDLActivity.nativeGetHint ( String name)
static

◆ nativeGetHint() [2/2]

native String org.libsdl.app.SDLActivity.nativeGetHint ( String name)
static

◆ nativeGetHintBoolean() [1/2]

native boolean org.libsdl.app.SDLActivity.nativeGetHintBoolean ( String name,
boolean default_value )
static
Here is the caller graph for this function:

◆ nativeGetHintBoolean() [2/2]

native boolean org.libsdl.app.SDLActivity.nativeGetHintBoolean ( String name,
boolean default_value )
static

◆ nativeGetVersion() [1/2]

native String org.libsdl.app.SDLActivity.nativeGetVersion ( )
static
Here is the caller graph for this function:

◆ nativeGetVersion() [2/2]

native String org.libsdl.app.SDLActivity.nativeGetVersion ( )
static

◆ nativeLowMemory() [1/2]

native void org.libsdl.app.SDLActivity.nativeLowMemory ( )
static
Here is the caller graph for this function:

◆ nativeLowMemory() [2/2]

native void org.libsdl.app.SDLActivity.nativeLowMemory ( )
static

◆ nativePause() [1/2]

native void org.libsdl.app.SDLActivity.nativePause ( )
static
Here is the caller graph for this function:

◆ nativePause() [2/2]

native void org.libsdl.app.SDLActivity.nativePause ( )
static

◆ nativePermissionResult() [1/2]

native void org.libsdl.app.SDLActivity.nativePermissionResult ( int requestCode,
boolean result )
static
Here is the caller graph for this function:

◆ nativePermissionResult() [2/2]

native void org.libsdl.app.SDLActivity.nativePermissionResult ( int requestCode,
boolean result )
static

◆ nativeQuit() [1/2]

native void org.libsdl.app.SDLActivity.nativeQuit ( )
static
Here is the caller graph for this function:

◆ nativeQuit() [2/2]

native void org.libsdl.app.SDLActivity.nativeQuit ( )
static

◆ nativeResume() [1/2]

native void org.libsdl.app.SDLActivity.nativeResume ( )
static
Here is the caller graph for this function:

◆ nativeResume() [2/2]

native void org.libsdl.app.SDLActivity.nativeResume ( )
static

◆ nativeRunMain() [1/2]

native int org.libsdl.app.SDLActivity.nativeRunMain ( String library,
String function,
Object arguments )
static

◆ nativeRunMain() [2/2]

native int org.libsdl.app.SDLActivity.nativeRunMain ( String library,
String function,
Object arguments )
static

◆ nativeSendQuit() [1/2]

native void org.libsdl.app.SDLActivity.nativeSendQuit ( )
static
Here is the caller graph for this function:

◆ nativeSendQuit() [2/2]

native void org.libsdl.app.SDLActivity.nativeSendQuit ( )
static

◆ nativeSetenv() [1/2]

native void org.libsdl.app.SDLActivity.nativeSetenv ( String name,
String value )
static
Here is the caller graph for this function:

◆ nativeSetenv() [2/2]

native void org.libsdl.app.SDLActivity.nativeSetenv ( String name,
String value )
static

◆ nativeSetScreenResolution() [1/2]

native void org.libsdl.app.SDLActivity.nativeSetScreenResolution ( int surfaceWidth,
int surfaceHeight,
int deviceWidth,
int deviceHeight,
float rate )
static
Here is the caller graph for this function:

◆ nativeSetScreenResolution() [2/2]

native void org.libsdl.app.SDLActivity.nativeSetScreenResolution ( int surfaceWidth,
int surfaceHeight,
int deviceWidth,
int deviceHeight,
float rate )
static

◆ nativeSetupJNI() [1/2]

native int org.libsdl.app.SDLActivity.nativeSetupJNI ( )
static
Here is the caller graph for this function:

◆ nativeSetupJNI() [2/2]

native int org.libsdl.app.SDLActivity.nativeSetupJNI ( )
static

◆ onBackPressed() [1/2]

void org.libsdl.app.SDLActivity.onBackPressed ( )
inline

◆ onBackPressed() [2/2]

void org.libsdl.app.SDLActivity.onBackPressed ( )
inline

◆ onConfigurationChanged() [1/2]

void org.libsdl.app.SDLActivity.onConfigurationChanged ( Configuration newConfig)
inline

◆ onConfigurationChanged() [2/2]

void org.libsdl.app.SDLActivity.onConfigurationChanged ( Configuration newConfig)
inline

◆ onCreate() [1/2]

void org.libsdl.app.SDLActivity.onCreate ( Bundle savedInstanceState)
inlineprotected

◆ onCreate() [2/2]

void org.libsdl.app.SDLActivity.onCreate ( Bundle savedInstanceState)
inlineprotected

◆ onDestroy() [1/2]

void org.libsdl.app.SDLActivity.onDestroy ( )
inlineprotected

◆ onDestroy() [2/2]

void org.libsdl.app.SDLActivity.onDestroy ( )
inlineprotected

◆ onLowMemory() [1/2]

void org.libsdl.app.SDLActivity.onLowMemory ( )
inline

◆ onLowMemory() [2/2]

void org.libsdl.app.SDLActivity.onLowMemory ( )
inline

◆ onNativeAccel() [1/2]

native void org.libsdl.app.SDLActivity.onNativeAccel ( float x,
float y,
float z )
static
Here is the caller graph for this function:

◆ onNativeAccel() [2/2]

native void org.libsdl.app.SDLActivity.onNativeAccel ( float x,
float y,
float z )
static

◆ onNativeClipboardChanged() [1/2]

native void org.libsdl.app.SDLActivity.onNativeClipboardChanged ( )
static

◆ onNativeClipboardChanged() [2/2]

native void org.libsdl.app.SDLActivity.onNativeClipboardChanged ( )
static

◆ onNativeDropFile() [1/2]

native void org.libsdl.app.SDLActivity.onNativeDropFile ( String filename)
static

◆ onNativeDropFile() [2/2]

native void org.libsdl.app.SDLActivity.onNativeDropFile ( String filename)
static

◆ onNativeKeyboardFocusLost() [1/2]

native void org.libsdl.app.SDLActivity.onNativeKeyboardFocusLost ( )
static

◆ onNativeKeyboardFocusLost() [2/2]

native void org.libsdl.app.SDLActivity.onNativeKeyboardFocusLost ( )
static

◆ onNativeKeyDown() [1/2]

native void org.libsdl.app.SDLActivity.onNativeKeyDown ( int keycode)
static
Here is the caller graph for this function:

◆ onNativeKeyDown() [2/2]

native void org.libsdl.app.SDLActivity.onNativeKeyDown ( int keycode)
static

◆ onNativeKeyUp() [1/2]

native void org.libsdl.app.SDLActivity.onNativeKeyUp ( int keycode)
static
Here is the caller graph for this function:

◆ onNativeKeyUp() [2/2]

native void org.libsdl.app.SDLActivity.onNativeKeyUp ( int keycode)
static

◆ onNativeLocaleChanged() [1/2]

native void org.libsdl.app.SDLActivity.onNativeLocaleChanged ( )
static
Here is the caller graph for this function:

◆ onNativeLocaleChanged() [2/2]

native void org.libsdl.app.SDLActivity.onNativeLocaleChanged ( )
static

◆ onNativeMouse() [1/2]

native void org.libsdl.app.SDLActivity.onNativeMouse ( int button,
int action,
float x,
float y,
boolean relative )
static
Here is the caller graph for this function:

◆ onNativeMouse() [2/2]

native void org.libsdl.app.SDLActivity.onNativeMouse ( int button,
int action,
float x,
float y,
boolean relative )
static

◆ onNativeOrientationChanged() [1/2]

native void org.libsdl.app.SDLActivity.onNativeOrientationChanged ( int orientation)
static
Here is the caller graph for this function:

◆ onNativeOrientationChanged() [2/2]

native void org.libsdl.app.SDLActivity.onNativeOrientationChanged ( int orientation)
static

◆ onNativeResize() [1/2]

native void org.libsdl.app.SDLActivity.onNativeResize ( )
static
Here is the caller graph for this function:

◆ onNativeResize() [2/2]

native void org.libsdl.app.SDLActivity.onNativeResize ( )
static

◆ onNativeSoftReturnKey() [1/2]

native boolean org.libsdl.app.SDLActivity.onNativeSoftReturnKey ( )
static

◆ onNativeSoftReturnKey() [2/2]

native boolean org.libsdl.app.SDLActivity.onNativeSoftReturnKey ( )
static

◆ onNativeSurfaceChanged() [1/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceChanged ( )
static
Here is the caller graph for this function:

◆ onNativeSurfaceChanged() [2/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceChanged ( )
static

◆ onNativeSurfaceCreated() [1/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceCreated ( )
static
Here is the caller graph for this function:

◆ onNativeSurfaceCreated() [2/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceCreated ( )
static

◆ onNativeSurfaceDestroyed() [1/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceDestroyed ( )
static
Here is the caller graph for this function:

◆ onNativeSurfaceDestroyed() [2/2]

native void org.libsdl.app.SDLActivity.onNativeSurfaceDestroyed ( )
static

◆ onNativeTouch() [1/2]

native void org.libsdl.app.SDLActivity.onNativeTouch ( int touchDevId,
int pointerFingerId,
int action,
float x,
float y,
float p )
static
Here is the caller graph for this function:

◆ onNativeTouch() [2/2]

native void org.libsdl.app.SDLActivity.onNativeTouch ( int touchDevId,
int pointerFingerId,
int action,
float x,
float y,
float p )
static

◆ onPause() [1/2]

void org.libsdl.app.SDLActivity.onPause ( )
inlineprotected

◆ onPause() [2/2]

void org.libsdl.app.SDLActivity.onPause ( )
inlineprotected

◆ onRequestPermissionsResult() [1/2]

void org.libsdl.app.SDLActivity.onRequestPermissionsResult ( int requestCode,
String[] permissions,
int[] grantResults )
inline

◆ onRequestPermissionsResult() [2/2]

void org.libsdl.app.SDLActivity.onRequestPermissionsResult ( int requestCode,
String[] permissions,
int[] grantResults )
inline

◆ onResume() [1/2]

void org.libsdl.app.SDLActivity.onResume ( )
inlineprotected

◆ onResume() [2/2]

void org.libsdl.app.SDLActivity.onResume ( )
inlineprotected

◆ onStart() [1/2]

void org.libsdl.app.SDLActivity.onStart ( )
inlineprotected

◆ onStart() [2/2]

void org.libsdl.app.SDLActivity.onStart ( )
inlineprotected

◆ onStop() [1/2]

void org.libsdl.app.SDLActivity.onStop ( )
inlineprotected

◆ onStop() [2/2]

void org.libsdl.app.SDLActivity.onStop ( )
inlineprotected

◆ onSystemUiVisibilityChange() [1/2]

void org.libsdl.app.SDLActivity.onSystemUiVisibilityChange ( int visibility)
inline

◆ onSystemUiVisibilityChange() [2/2]

void org.libsdl.app.SDLActivity.onSystemUiVisibilityChange ( int visibility)
inline

◆ onUnhandledMessage() [1/2]

boolean org.libsdl.app.SDLActivity.onUnhandledMessage ( int command,
Object param )
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.

Parameters
commandthe command of the message.
paramthe parameter of the message. May be null.
Returns
if the message was handled in overridden method.

◆ onUnhandledMessage() [2/2]

boolean org.libsdl.app.SDLActivity.onUnhandledMessage ( int command,
Object param )
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.

Parameters
commandthe command of the message.
paramthe parameter of the message. May be null.
Returns
if the message was handled in overridden method.

◆ onWindowFocusChanged() [1/2]

void org.libsdl.app.SDLActivity.onWindowFocusChanged ( boolean hasFocus)
inline

◆ onWindowFocusChanged() [2/2]

void org.libsdl.app.SDLActivity.onWindowFocusChanged ( boolean hasFocus)
inline

◆ openURL() [1/2]

int org.libsdl.app.SDLActivity.openURL ( String url)
inlinestatic

This method is called by SDL using JNI.

◆ openURL() [2/2]

int org.libsdl.app.SDLActivity.openURL ( String url)
inlinestatic

This method is called by SDL using JNI.

◆ pauseNativeThread() [1/2]

void org.libsdl.app.SDLActivity.pauseNativeThread ( )
inlineprotected
Here is the caller graph for this function:

◆ pauseNativeThread() [2/2]

void org.libsdl.app.SDLActivity.pauseNativeThread ( )
inlineprotected

◆ pressBackButton() [1/2]

void org.libsdl.app.SDLActivity.pressBackButton ( )
inline

◆ pressBackButton() [2/2]

void org.libsdl.app.SDLActivity.pressBackButton ( )
inline

◆ requestPermission() [1/2]

void org.libsdl.app.SDLActivity.requestPermission ( String permission,
int requestCode )
inlinestatic

This method is called by SDL using JNI.

◆ requestPermission() [2/2]

void org.libsdl.app.SDLActivity.requestPermission ( String permission,
int requestCode )
inlinestatic

This method is called by SDL using JNI.

◆ resumeNativeThread() [1/2]

void org.libsdl.app.SDLActivity.resumeNativeThread ( )
inlineprotected
Here is the caller graph for this function:

◆ resumeNativeThread() [2/2]

void org.libsdl.app.SDLActivity.resumeNativeThread ( )
inlineprotected

◆ sendMessage() [1/2]

boolean org.libsdl.app.SDLActivity.sendMessage ( int command,
int param )
inlinestatic

This method is called by SDL using JNI.

◆ sendMessage() [2/2]

boolean org.libsdl.app.SDLActivity.sendMessage ( int command,
int param )
inlinestatic

This method is called by SDL using JNI.

◆ setActivityTitle() [1/2]

boolean org.libsdl.app.SDLActivity.setActivityTitle ( String title)
inlinestatic

This method is called by SDL using JNI.

◆ setActivityTitle() [2/2]

boolean org.libsdl.app.SDLActivity.setActivityTitle ( String title)
inlinestatic

This method is called by SDL using JNI.

◆ setCustomCursor() [1/2]

boolean org.libsdl.app.SDLActivity.setCustomCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ setCustomCursor() [2/2]

boolean org.libsdl.app.SDLActivity.setCustomCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ setOrientation() [1/2]

void org.libsdl.app.SDLActivity.setOrientation ( int w,
int h,
boolean resizable,
String hint )
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

◆ setOrientation() [2/2]

void org.libsdl.app.SDLActivity.setOrientation ( int w,
int h,
boolean resizable,
String hint )
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

◆ setOrientationBis() [1/2]

void org.libsdl.app.SDLActivity.setOrientationBis ( int w,
int h,
boolean resizable,
String hint )
inline

This can be overridden

◆ setOrientationBis() [2/2]

void org.libsdl.app.SDLActivity.setOrientationBis ( int w,
int h,
boolean resizable,
String hint )
inline

This can be overridden

◆ setRelativeMouseEnabled() [1/2]

boolean org.libsdl.app.SDLActivity.setRelativeMouseEnabled ( boolean enabled)
inlinestatic

This method is called by SDL using JNI.

◆ setRelativeMouseEnabled() [2/2]

boolean org.libsdl.app.SDLActivity.setRelativeMouseEnabled ( boolean enabled)
inlinestatic

This method is called by SDL using JNI.

◆ setSystemCursor() [1/2]

boolean org.libsdl.app.SDLActivity.setSystemCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ setSystemCursor() [2/2]

boolean org.libsdl.app.SDLActivity.setSystemCursor ( int cursorID)
inlinestatic

This method is called by SDL using JNI.

◆ setWindowStyle() [1/2]

void org.libsdl.app.SDLActivity.setWindowStyle ( boolean fullscreen)
inlinestatic

This method is called by SDL using JNI.

◆ setWindowStyle() [2/2]

void org.libsdl.app.SDLActivity.setWindowStyle ( boolean fullscreen)
inlinestatic

This method is called by SDL using JNI.

◆ shouldMinimizeOnFocusLoss() [1/2]

boolean org.libsdl.app.SDLActivity.shouldMinimizeOnFocusLoss ( )
inlinestatic

This method is called by SDL using JNI.

◆ shouldMinimizeOnFocusLoss() [2/2]

boolean org.libsdl.app.SDLActivity.shouldMinimizeOnFocusLoss ( )
inlinestatic

This method is called by SDL using JNI.

◆ showTextInput() [1/2]

boolean org.libsdl.app.SDLActivity.showTextInput ( int x,
int y,
int w,
int h )
inlinestatic

This method is called by SDL using JNI.

◆ showTextInput() [2/2]

boolean org.libsdl.app.SDLActivity.showTextInput ( int x,
int y,
int w,
int h )
inlinestatic

This method is called by SDL using JNI.

◆ showToast() [1/2]

int org.libsdl.app.SDLActivity.showToast ( String message,
int duration,
int gravity,
int xOffset,
int yOffset )
inlinestatic

This method is called by SDL using JNI.

◆ showToast() [2/2]

int org.libsdl.app.SDLActivity.showToast ( String message,
int duration,
int gravity,
int xOffset,
int yOffset )
inlinestatic

This method is called by SDL using JNI.

◆ superOnBackPressed() [1/2]

void org.libsdl.app.SDLActivity.superOnBackPressed ( )
inline
Here is the caller graph for this function:

◆ superOnBackPressed() [2/2]

void org.libsdl.app.SDLActivity.superOnBackPressed ( )
inline

◆ supportsRelativeMouse() [1/2]

boolean org.libsdl.app.SDLActivity.supportsRelativeMouse ( )
inlinestatic

This method is called by SDL using JNI.

Here is the caller graph for this function:

◆ supportsRelativeMouse() [2/2]

boolean org.libsdl.app.SDLActivity.supportsRelativeMouse ( )
inlinestatic

This method is called by SDL using JNI.

Member Data Documentation

◆ COMMAND_USER

final int org.libsdl.app.SDLActivity.COMMAND_USER = 0x8000
staticprotected

◆ mBrokenLibraries

boolean org.libsdl.app.SDLActivity.mBrokenLibraries = true
static

If shared libraries (e.g. SDL or the native application) could not be loaded.

◆ mClipboardHandler

SDLClipboardHandler org.libsdl.app.SDLActivity.mClipboardHandler
staticprotected

◆ mCurrentLocale

Locale org.libsdl.app.SDLActivity.mCurrentLocale
staticprotected

◆ mCurrentNativeState

NativeState org.libsdl.app.SDLActivity.mCurrentNativeState
static

◆ mCurrentOrientation

int org.libsdl.app.SDLActivity.mCurrentOrientation
staticprotected

◆ mCursors

Hashtable< Integer, PointerIcon > org.libsdl.app.SDLActivity.mCursors
staticprotected

◆ messageboxSelection

final int [] org.libsdl.app.SDLActivity.messageboxSelection = new int[1]
protected

Result of current messagebox. Also used for blocking the calling thread.

◆ mFullscreenModeActive

boolean org.libsdl.app.SDLActivity.mFullscreenModeActive
staticprotected

◆ mHasFocus

boolean org.libsdl.app.SDLActivity.mHasFocus
static

◆ mHasMultiWindow

final boolean org.libsdl.app.SDLActivity.mHasMultiWindow = (Build.VERSION.SDK_INT >= 24 )
static

◆ mHIDDeviceManager

HIDDeviceManager org.libsdl.app.SDLActivity.mHIDDeviceManager
staticprotected

◆ mIsResumedCalled

boolean org.libsdl.app.SDLActivity.mIsResumedCalled
static

◆ mLastCursorID

int org.libsdl.app.SDLActivity.mLastCursorID
staticprotected

◆ mLayout

ViewGroup org.libsdl.app.SDLActivity.mLayout
staticprotected

◆ mMotionListener

SDLGenericMotionListener_API12 org.libsdl.app.SDLActivity.mMotionListener
staticprotected

◆ mNextNativeState

NativeState org.libsdl.app.SDLActivity.mNextNativeState
static

◆ mScreenKeyboardShown

boolean org.libsdl.app.SDLActivity.mScreenKeyboardShown
staticprotected

◆ mSDLThread

Thread org.libsdl.app.SDLActivity.mSDLThread
staticprotected

◆ mSingleton

SDLActivity org.libsdl.app.SDLActivity.mSingleton
staticprotected

◆ mSurface

SDLSurface org.libsdl.app.SDLActivity.mSurface
staticprotected

◆ mTextEdit

DummyEdit org.libsdl.app.SDLActivity.mTextEdit
staticprotected

◆ SDL_ORIENTATION_LANDSCAPE

final int org.libsdl.app.SDLActivity.SDL_ORIENTATION_LANDSCAPE = 1
staticprotected

◆ SDL_ORIENTATION_LANDSCAPE_FLIPPED

final int org.libsdl.app.SDLActivity.SDL_ORIENTATION_LANDSCAPE_FLIPPED = 2
staticprotected

◆ SDL_ORIENTATION_PORTRAIT

final int org.libsdl.app.SDLActivity.SDL_ORIENTATION_PORTRAIT = 3
staticprotected

◆ SDL_ORIENTATION_PORTRAIT_FLIPPED

final int org.libsdl.app.SDLActivity.SDL_ORIENTATION_PORTRAIT_FLIPPED = 4
staticprotected

◆ SDL_ORIENTATION_UNKNOWN

final int org.libsdl.app.SDLActivity.SDL_ORIENTATION_UNKNOWN = 0
staticprotected

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