Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
org.qtproject.qt.android.QtNative Class Reference
+ Collaboration diagram for org.qtproject.qt.android.QtNative:

Static Public Member Functions

static boolean isStarted ()
 
static ClassLoader classLoader ()
 
static void setClassLoader (ClassLoader classLoader)
 
static Activity activity ()
 
static Service service ()
 
static QtActivityDelegate activityDelegate ()
 
static QtServiceDelegate serviceDelegate ()
 
static String[] getStringArray (String joinedString)
 
static boolean openURL (Context context, String url, String mime)
 
static void loadQtLibraries (final ArrayList< String > libraries)
 
static void loadBundledLibraries (final ArrayList< String > libraries, final String nativeLibraryDir)
 
static String loadMainLibrary (final String mainLibrary, final String nativeLibraryDir)
 
static void setActivity (Activity qtMainActivity, QtActivityDelegate qtActivityDelegate)
 
static void setService (Service qtMainService, QtServiceDelegate qtServiceDelegate)
 
static void setApplicationState (int state)
 
static Display getDisplay (int displayId)
 
static List< Display > getAvailableDisplays ()
 
static Size getDisplaySize (Context displayContext, Display display)
 
static boolean startApplication (String params, String mainLib) throws Exception
 
static void setApplicationDisplayMetrics (int screenWidthPixels, int screenHeightPixels, int availableLeftPixels, int availableTopPixels, int availableWidthPixels, int availableHeightPixels, double XDpi, double YDpi, double scaledDensity, double density, float refreshRate)
 
static native boolean startQtAndroidPlugin (String params)
 
static native void startQtApplication ()
 
static native void waitForServiceSetup ()
 
static native void quitQtCoreApplication ()
 
static native void quitQtAndroidPlugin ()
 
static native void terminateQt ()
 
static native boolean updateNativeActivity ()
 
static void quitApp ()
 
static void sendTouchEvent (MotionEvent event, int id)
 
static void sendTrackballEvent (MotionEvent event, int id)
 
static boolean sendGenericMotionEvent (MotionEvent event, int id)
 
static boolean sendMouseEvent (MotionEvent event, int id)
 
static Context getContext ()
 
static int checkSelfPermission (String permission)
 
static boolean isSoftwareKeyboardVisible ()
 
static void notifyQtAndroidPluginRunning (final boolean running)
 
static boolean hasClipboardText ()
 
static boolean hasClipboardHtml ()
 
static boolean hasClipboardUri ()
 
static void keyboardVisibilityUpdated (boolean visibility)
 
static void setEnvironmentVariable (String key, String value)
 
static void setEnvironmentVariables (String environmentVariables)
 
static native void setDisplayMetrics (int screenWidthPixels, int screenHeightPixels, int availableLeftPixels, int availableTopPixels, int availableWidthPixels, int availableHeightPixels, double XDpi, double YDpi, double scaledDensity, double density, float refreshRate)
 
static native void handleOrientationChanged (int newRotation, int nativeOrientation)
 
static native void handleRefreshRateChanged (float refreshRate)
 
static native void handleScreenAdded (int displayId)
 
static native void handleScreenChanged (int displayId)
 
static native void handleScreenRemoved (int displayId)
 
static native void handleUiDarkModeChanged (int newUiMode)
 
static native void mouseDown (int winId, int x, int y)
 
static native void mouseUp (int winId, int x, int y)
 
static native void mouseMove (int winId, int x, int y)
 
static native void mouseWheel (int winId, int x, int y, float hdelta, float vdelta)
 
static native void touchBegin (int winId)
 
static native void touchAdd (int winId, int pointerId, int action, boolean primary, int x, int y, float major, float minor, float rotation, float pressure)
 
static native void touchEnd (int winId, int action)
 
static native void touchCancel (int winId)
 
static native void longPress (int winId, int x, int y)
 
static native boolean isTabletEventSupported ()
 
static native void tabletEvent (int winId, int deviceId, long time, int action, int pointerType, int buttonState, float x, float y, float pressure)
 
static native void keyDown (int key, int unicode, int modifier, boolean autoRepeat)
 
static native void keyUp (int key, int unicode, int modifier, boolean autoRepeat)
 
static native void keyboardVisibilityChanged (boolean visibility)
 
static native void keyboardGeometryChanged (int x, int y, int width, int height)
 
static native void handleLocationChanged (int id, int x, int y)
 
static native boolean dispatchGenericMotionEvent (MotionEvent ev)
 
static native boolean dispatchKeyEvent (KeyEvent event)
 
static native void setSurface (int id, Object surface, int w, int h)
 
static native void updateWindow ()
 
static native void updateApplicationState (int state)
 
static native boolean onPrepareOptionsMenu (Menu menu)
 
static native boolean onOptionsItemSelected (int itemId, boolean checked)
 
static native void onOptionsMenuClosed (Menu menu)
 
static native void onCreateContextMenu (ContextMenu menu)
 
static native void fillContextMenu (Menu menu)
 
static native boolean onContextItemSelected (int itemId, boolean checked)
 
static native void onContextMenuClosed (Menu menu)
 
static native void onClipboardDataChanged ()
 
static native void onActivityResult (int requestCode, int resultCode, Intent data)
 
static native void onNewIntent (Intent data)
 
static native void runPendingCppRunnables ()
 
static native void sendRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults)
 
static native IBinder onBind (Intent intent)
 

Static Public Attributes

static Object m_mainActivityMutex = new Object()
 
static final String QtTAG = "Qt JAVA"
 
static QtThread m_qtThread = new QtThread()
 
static final int IdCursorHandle = 1
 
static final int IdLeftHandle = 2
 
static final int IdRightHandle = 3
 

Detailed Description

Definition at line 60 of file QtNative.java.

Member Function Documentation

◆ activity()

static Activity org.qtproject.qt.android.QtNative.activity ( )
inlinestatic

Definition at line 120 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex.

Referenced by org.qtproject.qt.android.QtNative.openURL().

+ Here is the caller graph for this function:

◆ activityDelegate()

static QtActivityDelegate org.qtproject.qt.android.QtNative.activityDelegate ( )
inlinestatic

Definition at line 135 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex.

Referenced by org.qtproject.qt.android.bindings.QtActivity.bringChildToBack(), org.qtproject.qt.android.bindings.QtActivity.bringChildToFront(), org.qtproject.qt.android.bindings.QtActivity.closeContextMenu(), org.qtproject.qt.android.bindings.QtActivity.createSurface(), org.qtproject.qt.android.bindings.QtActivity.destroySurface(), org.qtproject.qt.android.bindings.QtActivity.getSurfaceCount(), org.qtproject.qt.android.bindings.QtActivity.hideSoftwareKeyboard(), org.qtproject.qt.android.bindings.QtActivity.hideSplashScreen(), org.qtproject.qt.android.bindings.QtActivity.hideSplashScreen(), org.qtproject.qt.android.bindings.QtActivity.initializeAccessibility(), org.qtproject.qt.android.bindings.QtActivity.insertNativeView(), org.qtproject.qt.android.bindings.QtActivity.isKeyboardVisible(), org.qtproject.qt.android.bindings.QtActivity.loadApplication(), org.qtproject.qt.android.bindings.QtActivity.notifyAccessibilityLocationChange(), org.qtproject.qt.android.bindings.QtActivity.notifyObjectFocus(), org.qtproject.qt.android.bindings.QtActivity.notifyObjectHide(), org.qtproject.qt.android.bindings.QtActivity.notifyQtAndroidPluginRunning(), org.qtproject.qt.android.bindings.QtActivity.notifyValueChanged(), org.qtproject.qt.android.bindings.QtActivityLoader.onCreate(), org.qtproject.qt.android.bindings.QtActivity.onCreatePopupMenu(), org.qtproject.qt.android.bindings.QtActivity.onTerminate(), org.qtproject.qt.android.bindings.QtActivity.openContextMenu(), org.qtproject.qt.android.bindings.QtActivity.resetOptionsMenu(), org.qtproject.qt.android.bindings.QtActivity.resetSoftwareKeyboard(), org.qtproject.qt.android.QtInputConnection.sendKeyEvent(), org.qtproject.qt.android.bindings.QtActivity.setKeyboardVisibility(), org.qtproject.qt.android.bindings.QtActivity.setSurfaceGeometry(), org.qtproject.qt.android.bindings.QtActivity.setSystemUiVisibility(), org.qtproject.qt.android.bindings.QtActivity.showSoftwareKeyboard(), org.qtproject.qt.android.bindings.QtActivity.startApplication(), org.qtproject.qt.android.bindings.QtActivity.updateFullScreen(), org.qtproject.qt.android.bindings.QtActivity.updateHandles(), and org.qtproject.qt.android.bindings.QtActivity.updateSelection().

+ Here is the caller graph for this function:

◆ checkSelfPermission()

static int org.qtproject.qt.android.QtNative.checkSelfPermission ( String  permission)
inlinestatic

Definition at line 677 of file QtNative.java.

References context, org.qtproject.qt.android.QtNative.getContext(), and org.qtproject.qt.android.QtNative.m_mainActivityMutex.

+ Here is the call graph for this function:

◆ classLoader()

static ClassLoader org.qtproject.qt.android.QtNative.classLoader ( )
inlinestatic

Definition at line 110 of file QtNative.java.

Referenced by org.qtproject.qt.android.QtNative.setClassLoader().

+ Here is the caller graph for this function:

◆ dispatchGenericMotionEvent()

static native boolean org.qtproject.qt.android.QtNative.dispatchGenericMotionEvent ( MotionEvent  ev)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.dispatchGenericMotionEvent().

+ Here is the caller graph for this function:

◆ dispatchKeyEvent()

static native boolean org.qtproject.qt.android.QtNative.dispatchKeyEvent ( KeyEvent  event)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.dispatchKeyEvent().

+ Here is the caller graph for this function:

◆ fillContextMenu()

static native void org.qtproject.qt.android.QtNative.fillContextMenu ( Menu  menu)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreatePopupMenu().

+ Here is the caller graph for this function:

◆ getAvailableDisplays()

static List< Display > org.qtproject.qt.android.QtNative.getAvailableDisplays ( )
inlinestatic

Definition at line 409 of file QtNative.java.

References context, and org.qtproject.qt.android.QtNative.getContext().

+ Here is the call graph for this function:

◆ getContext()

static Context org.qtproject.qt.android.QtNative.getContext ( )
inlinestatic

Definition at line 671 of file QtNative.java.

Referenced by org.qtproject.qt.android.QtNative.checkSelfPermission(), org.qtproject.qt.android.QtNative.getAvailableDisplays(), org.qtproject.qt.android.QtNative.getDisplay(), org.qtproject.qt.android.QtNative.loadBundledLibraries(), and org.qtproject.qt.android.QtNative.loadMainLibrary().

+ Here is the caller graph for this function:

◆ getDisplay()

static Display org.qtproject.qt.android.QtNative.getDisplay ( int  displayId)
inlinestatic

Definition at line 398 of file QtNative.java.

References context, and org.qtproject.qt.android.QtNative.getContext().

+ Here is the call graph for this function:

◆ getDisplaySize()

static Size org.qtproject.qt.android.QtNative.getDisplaySize ( Context  displayContext,
Display  display 
)
inlinestatic

Definition at line 421 of file QtNative.java.

References Size.

◆ getStringArray()

static String[] org.qtproject.qt.android.QtNative.getStringArray ( String  joinedString)
inlinestatic

Definition at line 149 of file QtNative.java.

◆ handleLocationChanged()

static native void org.qtproject.qt.android.QtNative.handleLocationChanged ( int  id,
int  x,
int  y 
)
static

Referenced by org.qtproject.qt.android.CursorHandle.updatePosition().

+ Here is the caller graph for this function:

◆ handleOrientationChanged()

static native void org.qtproject.qt.android.QtNative.handleOrientationChanged ( int  newRotation,
int  nativeOrientation 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreate(), and org.qtproject.qt.android.QtLayout.onSizeChanged().

+ Here is the caller graph for this function:

◆ handleRefreshRateChanged()

static native void org.qtproject.qt.android.QtNative.handleRefreshRateChanged ( float  refreshRate)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreate().

+ Here is the caller graph for this function:

◆ handleScreenAdded()

static native void org.qtproject.qt.android.QtNative.handleScreenAdded ( int  displayId)
static

◆ handleScreenChanged()

static native void org.qtproject.qt.android.QtNative.handleScreenChanged ( int  displayId)
static

◆ handleScreenRemoved()

static native void org.qtproject.qt.android.QtNative.handleScreenRemoved ( int  displayId)
static

◆ handleUiDarkModeChanged()

static native void org.qtproject.qt.android.QtNative.handleUiDarkModeChanged ( int  newUiMode)
static

◆ hasClipboardHtml()

static boolean org.qtproject.qt.android.QtNative.hasClipboardHtml ( )
inlinestatic

Definition at line 962 of file QtNative.java.

◆ hasClipboardText()

static boolean org.qtproject.qt.android.QtNative.hasClipboardText ( )
inlinestatic

Definition at line 896 of file QtNative.java.

Referenced by org.qtproject.qt.android.QtActivityDelegate.updateHandles().

+ Here is the caller graph for this function:

◆ hasClipboardUri()

static boolean org.qtproject.qt.android.QtNative.hasClipboardUri ( )
inlinestatic

Definition at line 991 of file QtNative.java.

◆ isSoftwareKeyboardVisible()

static boolean org.qtproject.qt.android.QtNative.isSoftwareKeyboardVisible ( )
inlinestatic

Definition at line 778 of file QtNative.java.

References org.qtproject.qt.android.QtActivityDelegate.isKeyboardVisible().

+ Here is the call graph for this function:

◆ isStarted()

static boolean org.qtproject.qt.android.QtNative.isStarted ( )
inlinestatic

Definition at line 102 of file QtNative.java.

Referenced by org.qtproject.qt.android.bindings.QtActivityLoader.onCreate(), and org.qtproject.qt.android.bindings.QtService.onCreateHook().

+ Here is the caller graph for this function:

◆ isTabletEventSupported()

static native boolean org.qtproject.qt.android.QtNative.isTabletEventSupported ( )
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ keyboardGeometryChanged()

static native void org.qtproject.qt.android.QtNative.keyboardGeometryChanged ( int  x,
int  y,
int  width,
int  height 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreate().

+ Here is the caller graph for this function:

◆ keyboardVisibilityChanged()

static native void org.qtproject.qt.android.QtNative.keyboardVisibilityChanged ( boolean  visibility)
static

Referenced by org.qtproject.qt.android.QtNative.keyboardVisibilityUpdated().

+ Here is the caller graph for this function:

◆ keyboardVisibilityUpdated()

static void org.qtproject.qt.android.QtNative.keyboardVisibilityUpdated ( boolean  visibility)
inlinestatic

Definition at line 1172 of file QtNative.java.

References org.qtproject.qt.android.QtNative.keyboardVisibilityChanged().

Referenced by org.qtproject.qt.android.QtActivityDelegate.setKeyboardVisibility().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyDown()

static native void org.qtproject.qt.android.QtNative.keyDown ( int  key,
int  unicode,
int  modifier,
boolean  autoRepeat 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.dispatchKeyEvent(), and org.qtproject.qt.android.QtActivityDelegate.onKeyDown().

+ Here is the caller graph for this function:

◆ keyUp()

static native void org.qtproject.qt.android.QtNative.keyUp ( int  key,
int  unicode,
int  modifier,
boolean  autoRepeat 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.dispatchKeyEvent(), and org.qtproject.qt.android.QtActivityDelegate.onKeyUp().

+ Here is the caller graph for this function:

◆ loadBundledLibraries()

static void org.qtproject.qt.android.QtNative.loadBundledLibraries ( final ArrayList< String >  libraries,
final String  nativeLibraryDir 
)
inlinestatic

Definition at line 249 of file QtNative.java.

References e, org.qtproject.qt.android.QtNative.getContext(), info, Log, org.qtproject.qt.android.QtNative.m_qtThread, org.qtproject.qt.android.QtNative.QtTAG, org.qtproject.qt.android.QtThread.run(), and org.qtproject.qt.android.QtNativeLibrariesDir.systemLibrariesDir.

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), and org.qtproject.qt.android.QtServiceDelegate.loadApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadMainLibrary()

static String org.qtproject.qt.android.QtNative.loadMainLibrary ( final String  mainLibrary,
final String  nativeLibraryDir 
)
inlinestatic

Definition at line 286 of file QtNative.java.

References e, org.qtproject.qt.android.QtNative.getContext(), info, Log, org.qtproject.qt.android.QtNative.m_qtThread, org.qtproject.qt.android.QtNative.QtTAG, org.qtproject.qt.android.QtThread.run(), and org.qtproject.qt.android.QtNativeLibrariesDir.systemLibrariesDir.

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), and org.qtproject.qt.android.QtServiceDelegate.loadApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadQtLibraries()

static void org.qtproject.qt.android.QtNative.loadQtLibraries ( final ArrayList< String >  libraries)
inlinestatic

Definition at line 224 of file QtNative.java.

References e, Log, org.qtproject.qt.android.QtNative.m_qtThread, org.qtproject.qt.android.QtNative.QtTAG, and org.qtproject.qt.android.QtThread.run().

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), and org.qtproject.qt.android.QtServiceDelegate.loadApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ longPress()

static native void org.qtproject.qt.android.QtNative.longPress ( int  winId,
int  x,
int  y 
)
static

◆ mouseDown()

static native void org.qtproject.qt.android.QtNative.mouseDown ( int  winId,
int  x,
int  y 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendMouseEvent().

+ Here is the caller graph for this function:

◆ mouseMove()

static native void org.qtproject.qt.android.QtNative.mouseMove ( int  winId,
int  x,
int  y 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendMouseEvent().

+ Here is the caller graph for this function:

◆ mouseUp()

static native void org.qtproject.qt.android.QtNative.mouseUp ( int  winId,
int  x,
int  y 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendMouseEvent().

+ Here is the caller graph for this function:

◆ mouseWheel()

static native void org.qtproject.qt.android.QtNative.mouseWheel ( int  winId,
int  x,
int  y,
float  hdelta,
float  vdelta 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendMouseEvent().

+ Here is the caller graph for this function:

◆ notifyQtAndroidPluginRunning()

static void org.qtproject.qt.android.QtNative.notifyQtAndroidPluginRunning ( final boolean  running)
inlinestatic

Definition at line 843 of file QtNative.java.

References org.qtproject.qt.android.QtActivityDelegate.notifyQtAndroidPluginRunning(), and running.

+ Here is the call graph for this function:

◆ onActivityResult()

static native void org.qtproject.qt.android.QtNative.onActivityResult ( int  requestCode,
int  resultCode,
Intent  data 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onActivityResult().

+ Here is the caller graph for this function:

◆ onBind()

static native IBinder org.qtproject.qt.android.QtNative.onBind ( Intent  intent)
static

Referenced by org.qtproject.qt.android.QtServiceDelegate.onBind().

+ Here is the caller graph for this function:

◆ onClipboardDataChanged()

static native void org.qtproject.qt.android.QtNative.onClipboardDataChanged ( )
static

◆ onContextItemSelected()

static native boolean org.qtproject.qt.android.QtNative.onContextItemSelected ( int  itemId,
boolean  checked 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onContextItemSelected().

+ Here is the caller graph for this function:

◆ onContextMenuClosed()

static native void org.qtproject.qt.android.QtNative.onContextMenuClosed ( Menu  menu)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onContextMenuClosed().

+ Here is the caller graph for this function:

◆ onCreateContextMenu()

static native void org.qtproject.qt.android.QtNative.onCreateContextMenu ( ContextMenu  menu)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreateContextMenu().

+ Here is the caller graph for this function:

◆ onNewIntent()

static native void org.qtproject.qt.android.QtNative.onNewIntent ( Intent  data)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onNewIntent().

+ Here is the caller graph for this function:

◆ onOptionsItemSelected()

static native boolean org.qtproject.qt.android.QtNative.onOptionsItemSelected ( int  itemId,
boolean  checked 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onOptionsItemSelected().

+ Here is the caller graph for this function:

◆ onOptionsMenuClosed()

static native void org.qtproject.qt.android.QtNative.onOptionsMenuClosed ( Menu  menu)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onOptionsMenuClosed().

+ Here is the caller graph for this function:

◆ onPrepareOptionsMenu()

static native boolean org.qtproject.qt.android.QtNative.onPrepareOptionsMenu ( Menu  menu)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onPrepareOptionsMenu().

+ Here is the caller graph for this function:

◆ openURL()

static boolean org.qtproject.qt.android.QtNative.openURL ( Context  context,
String  url,
String  mime 
)
inlinestatic

Definition at line 200 of file QtNative.java.

References org.qtproject.qt.android.QtNative.activity(), context, e, Log, mime, org.qtproject.qt.android.QtNative.QtTAG, and url.

+ Here is the call graph for this function:

◆ quitApp()

static void org.qtproject.qt.android.QtNative.quitApp ( )
inlinestatic

Definition at line 520 of file QtNative.java.

References org.qtproject.qt.android.QtNative.quitQtAndroidPlugin().

Referenced by org.qtproject.qt.android.bindings.QtActivityLoader.onCreate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ quitQtAndroidPlugin()

static native void org.qtproject.qt.android.QtNative.quitQtAndroidPlugin ( )
static

Referenced by org.qtproject.qt.android.QtNative.quitApp().

+ Here is the caller graph for this function:

◆ quitQtCoreApplication()

static native void org.qtproject.qt.android.QtNative.quitQtCoreApplication ( )
static

Referenced by org.qtproject.qt.android.QtServiceDelegate.onDestroy().

+ Here is the caller graph for this function:

◆ runPendingCppRunnables()

static native void org.qtproject.qt.android.QtNative.runPendingCppRunnables ( )
static

◆ sendGenericMotionEvent()

static boolean org.qtproject.qt.android.QtNative.sendGenericMotionEvent ( MotionEvent  event,
int  id 
)
inlinestatic

Definition at line 625 of file QtNative.java.

References org.qtproject.qt.android.QtNative.sendMouseEvent().

Referenced by org.qtproject.qt.android.QtSurface.onGenericMotionEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendMouseEvent()

static boolean org.qtproject.qt.android.QtNative.sendMouseEvent ( MotionEvent  event,
int  id 
)
inlinestatic

Definition at line 635 of file QtNative.java.

References org.qtproject.qt.android.QtNative.mouseDown(), org.qtproject.qt.android.QtNative.mouseMove(), org.qtproject.qt.android.QtNative.mouseUp(), and org.qtproject.qt.android.QtNative.mouseWheel().

Referenced by org.qtproject.qt.android.QtNative.sendGenericMotionEvent(), org.qtproject.qt.android.QtNative.sendTouchEvent(), and org.qtproject.qt.android.QtNative.sendTrackballEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendRequestPermissionsResult()

static native void org.qtproject.qt.android.QtNative.sendRequestPermissionsResult ( int  requestCode,
String[]  permissions,
int[]  grantResults 
)
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onRequestPermissionsResult().

+ Here is the caller graph for this function:

◆ sendTouchEvent()

static void org.qtproject.qt.android.QtNative.sendTouchEvent ( MotionEvent  event,
int  id 
)
inlinestatic

Definition at line 565 of file QtNative.java.

References i, org.qtproject.qt.android.QtNative.isTabletEventSupported(), pointerType(), org.qtproject.qt.android.QtNative.sendMouseEvent(), org.qtproject.qt.android.QtNative.tabletEvent(), org.qtproject.qt.android.QtNative.touchAdd(), org.qtproject.qt.android.QtNative.touchBegin(), org.qtproject.qt.android.QtNative.touchCancel(), and org.qtproject.qt.android.QtNative.touchEnd().

Referenced by org.qtproject.qt.android.QtSurface.onTouchEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendTrackballEvent()

static void org.qtproject.qt.android.QtNative.sendTrackballEvent ( MotionEvent  event,
int  id 
)
inlinestatic

Definition at line 620 of file QtNative.java.

References org.qtproject.qt.android.QtNative.sendMouseEvent().

Referenced by org.qtproject.qt.android.QtSurface.onTrackballEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ service()

static Service org.qtproject.qt.android.QtNative.service ( )
inlinestatic

◆ serviceDelegate()

static QtServiceDelegate org.qtproject.qt.android.QtNative.serviceDelegate ( )
inlinestatic

Definition at line 142 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex.

Referenced by org.qtproject.qt.android.bindings.QtService.loadApplication(), and org.qtproject.qt.android.bindings.QtService.startApplication().

+ Here is the caller graph for this function:

◆ setActivity()

static void org.qtproject.qt.android.QtNative.setActivity ( Activity  qtMainActivity,
QtActivityDelegate  qtActivityDelegate 
)
inlinestatic

Definition at line 321 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex.

Referenced by org.qtproject.qt.android.QtActivityDelegate.onDestroy().

+ Here is the caller graph for this function:

◆ setApplicationDisplayMetrics()

static void org.qtproject.qt.android.QtNative.setApplicationDisplayMetrics ( int  screenWidthPixels,
int  screenHeightPixels,
int  availableLeftPixels,
int  availableTopPixels,
int  availableWidthPixels,
int  availableHeightPixels,
double  XDpi,
double  YDpi,
double  scaledDensity,
double  density,
float  refreshRate 
)
inlinestatic

Definition at line 474 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex, and org.qtproject.qt.android.QtNative.setDisplayMetrics().

Referenced by org.qtproject.qt.android.QtServiceDelegate.loadApplication(), and org.qtproject.qt.android.QtLayout.onSizeChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setApplicationState()

static void org.qtproject.qt.android.QtNative.setApplicationState ( int  state)
inlinestatic

Definition at line 337 of file QtNative.java.

References org.qtproject.qt.android.QtActivityDelegate.ApplicationActive, org.qtproject.qt.android.QtNative.m_mainActivityMutex, state, and org.qtproject.qt.android.QtNative.updateApplicationState().

Referenced by org.qtproject.qt.android.QtActivityDelegate.onPause(), org.qtproject.qt.android.QtActivityDelegate.onResume(), and org.qtproject.qt.android.QtActivityDelegate.onStop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setClassLoader()

static void org.qtproject.qt.android.QtNative.setClassLoader ( ClassLoader  classLoader)
inlinestatic

Definition at line 115 of file QtNative.java.

References org.qtproject.qt.android.QtNative.classLoader().

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), and org.qtproject.qt.android.QtServiceDelegate.loadApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDisplayMetrics()

static native void org.qtproject.qt.android.QtNative.setDisplayMetrics ( int  screenWidthPixels,
int  screenHeightPixels,
int  availableLeftPixels,
int  availableTopPixels,
int  availableWidthPixels,
int  availableHeightPixels,
double  XDpi,
double  YDpi,
double  scaledDensity,
double  density,
float  refreshRate 
)
static

Referenced by org.qtproject.qt.android.QtNative.setApplicationDisplayMetrics(), and org.qtproject.qt.android.QtNative.startApplication().

+ Here is the caller graph for this function:

◆ setEnvironmentVariable()

static void org.qtproject.qt.android.QtNative.setEnvironmentVariable ( String  key,
String  value 
)
inlinestatic

Sets a single environment variable

returns true if the value was set, false otherwise. in case it cannot set value will log the exception

Definition at line 1207 of file QtNative.java.

References e, Log, and org.qtproject.qt.android.QtNative.QtTAG.

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), org.qtproject.qt.android.QtServiceDelegate.loadApplication(), and org.qtproject.qt.android.QtNative.setEnvironmentVariables().

+ Here is the caller graph for this function:

◆ setEnvironmentVariables()

static void org.qtproject.qt.android.QtNative.setEnvironmentVariables ( String  environmentVariables)
inlinestatic

Sets multiple environment variables

Uses '\t' as divider between variables and '=' between key/value Ex: key1=val1\tkey2=val2\tkey3=val3 Note: it assumed that the key cannot have '=' but the value can

Definition at line 1224 of file QtNative.java.

References org.qtproject.qt.android.QtNative.setEnvironmentVariable().

Referenced by org.qtproject.qt.android.QtActivityDelegate.loadApplication(), org.qtproject.qt.android.QtServiceDelegate.loadApplication(), and org.qtproject.qt.android.QtActivityDelegate.startApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setService()

static void org.qtproject.qt.android.QtNative.setService ( Service  qtMainService,
QtServiceDelegate  qtServiceDelegate 
)
inlinestatic

Definition at line 329 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex.

Referenced by org.qtproject.qt.android.QtServiceDelegate.loadApplication(), and org.qtproject.qt.android.QtServiceDelegate.onDestroy().

+ Here is the caller graph for this function:

◆ setSurface()

static native void org.qtproject.qt.android.QtNative.setSurface ( int  id,
Object  surface,
int  w,
int  h 
)
static

Referenced by org.qtproject.qt.android.QtSurface.surfaceChanged(), and org.qtproject.qt.android.QtSurface.surfaceDestroyed().

+ Here is the caller graph for this function:

◆ startApplication()

static boolean org.qtproject.qt.android.QtNative.startApplication ( String  params,
String  mainLib 
) throws Exception
inlinestatic

Definition at line 438 of file QtNative.java.

References org.qtproject.qt.android.QtNative.m_mainActivityMutex, org.qtproject.qt.android.QtNative.m_qtThread, org.qtproject.qt.android.QtThread.post(), org.qtproject.qt.android.QtThread.run(), org.qtproject.qt.android.QtNative.setDisplayMetrics(), org.qtproject.qt.android.QtNative.startQtAndroidPlugin(), org.qtproject.qt.android.QtNative.startQtApplication(), and org.qtproject.qt.android.QtNative.waitForServiceSetup().

Referenced by org.qtproject.qt.android.QtActivityDelegate.onCreate(), and org.qtproject.qt.android.QtServiceDelegate.startApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startQtAndroidPlugin()

static native boolean org.qtproject.qt.android.QtNative.startQtAndroidPlugin ( String  params)
static

Referenced by org.qtproject.qt.android.QtNative.startApplication().

+ Here is the caller graph for this function:

◆ startQtApplication()

static native void org.qtproject.qt.android.QtNative.startQtApplication ( )
static

Referenced by org.qtproject.qt.android.QtNative.startApplication().

+ Here is the caller graph for this function:

◆ tabletEvent()

static native void org.qtproject.qt.android.QtNative.tabletEvent ( int  winId,
int  deviceId,
long  time,
int  action,
int  pointerType,
int  buttonState,
float  x,
float  y,
float  pressure 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ terminateQt()

static native void org.qtproject.qt.android.QtNative.terminateQt ( )
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onDestroy(), org.qtproject.qt.android.QtServiceDelegate.onDestroy(), and org.qtproject.qt.android.QtActivityDelegate.onTerminate().

+ Here is the caller graph for this function:

◆ touchAdd()

static native void org.qtproject.qt.android.QtNative.touchAdd ( int  winId,
int  pointerId,
int  action,
boolean  primary,
int  x,
int  y,
float  major,
float  minor,
float  rotation,
float  pressure 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ touchBegin()

static native void org.qtproject.qt.android.QtNative.touchBegin ( int  winId)
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ touchCancel()

static native void org.qtproject.qt.android.QtNative.touchCancel ( int  winId)
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ touchEnd()

static native void org.qtproject.qt.android.QtNative.touchEnd ( int  winId,
int  action 
)
static

Referenced by org.qtproject.qt.android.QtNative.sendTouchEvent().

+ Here is the caller graph for this function:

◆ updateApplicationState()

static native void org.qtproject.qt.android.QtNative.updateApplicationState ( int  state)
static

Referenced by org.qtproject.qt.android.QtNative.setApplicationState().

+ Here is the caller graph for this function:

◆ updateNativeActivity()

static native boolean org.qtproject.qt.android.QtNative.updateNativeActivity ( )
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.updateActivity().

+ Here is the caller graph for this function:

◆ updateWindow()

static native void org.qtproject.qt.android.QtNative.updateWindow ( )
static

Referenced by org.qtproject.qt.android.QtActivityDelegate.onResume().

+ Here is the caller graph for this function:

◆ waitForServiceSetup()

static native void org.qtproject.qt.android.QtNative.waitForServiceSetup ( )
static

Referenced by org.qtproject.qt.android.QtNative.startApplication().

+ Here is the caller graph for this function:

Member Data Documentation

◆ IdCursorHandle

final int org.qtproject.qt.android.QtNative.IdCursorHandle = 1
static

◆ IdLeftHandle

final int org.qtproject.qt.android.QtNative.IdLeftHandle = 2
static

◆ IdRightHandle

final int org.qtproject.qt.android.QtNative.IdRightHandle = 3
static

◆ m_mainActivityMutex

◆ m_qtThread

◆ QtTAG


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