Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QAndroidActivityCallbackResultReceiver Class Reference

#include <qandroidextras_p.h>

Inheritance diagram for QAndroidActivityCallbackResultReceiver:
Collaboration diagram for QAndroidActivityCallbackResultReceiver:

Public Member Functions

 QAndroidActivityCallbackResultReceiver ()
void handleActivityResult (int receiverRequestCode, int resultCode, const QJniObject &intent) override
 Reimplement this function to get activity results after starting an activity using either QtAndroidPrivate::startActivity() or QtAndroidPrivate::startIntentSender().
void registerCallback (int receiverRequestCode, std::function< void(int, int, const QJniObject &)> callbackFunc)
Public Member Functions inherited from QAndroidActivityResultReceiver
 QAndroidActivityResultReceiver ()
virtual ~QAndroidActivityResultReceiver ()

Static Public Member Functions

static QAndroidActivityCallbackResultReceiverinstance ()

Detailed Description

Definition at line 178 of file qandroidextras_p.h.

Constructor & Destructor Documentation

◆ QAndroidActivityCallbackResultReceiver()

QAndroidActivityCallbackResultReceiver::QAndroidActivityCallbackResultReceiver ( )

Definition at line 1005 of file qandroidextras.cpp.

References QAndroidActivityCallbackResultReceiver().

Referenced by QAndroidActivityCallbackResultReceiver(), and instance().

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

Member Function Documentation

◆ handleActivityResult()

void QAndroidActivityCallbackResultReceiver::handleActivityResult ( int receiverRequestCode,
int resultCode,
const QJniObject & data )
overridevirtual

Reimplement this function to get activity results after starting an activity using either QtAndroidPrivate::startActivity() or QtAndroidPrivate::startIntentSender().

The receiverRequestCode is the request code unique to this receiver which was originally passed to the startActivity() or startIntentSender() functions. The resultCode is the result returned by the activity, and data is either null or a Java object of the class android.content.Intent. Both the last to arguments are identical to the arguments passed to onActivityResult().

Implements QAndroidActivityResultReceiver.

Definition at line 1011 of file qandroidextras.cpp.

◆ instance()

QAndroidActivityCallbackResultReceiver * QAndroidActivityCallbackResultReceiver::instance ( )
static

Definition at line 1019 of file qandroidextras.cpp.

References QAndroidActivityCallbackResultReceiver().

Referenced by QtAndroidPrivate::startActivity().

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

◆ registerCallback()

void QAndroidActivityCallbackResultReceiver::registerCallback ( int receiverRequestCode,
std::function< void(int, int, const QJniObject &)> callbackFunc )

Definition at line 1026 of file qandroidextras.cpp.

Referenced by QtAndroidPrivate::startActivity().

Here is the caller graph for this function:

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