Interface used for callbacks from onActivityResult() in the main Android activity. More...
Header: | #include <QtCore/private/qandroidextras_p.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS CorePrivate) target_link_libraries(mytarget PRIVATE Qt6::CorePrivate) |
qmake: | QT += core-private |
Since: | Qt 6.2 |
This class is under development and is subject to change.
virtual void | handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data) = 0 |
Create a subclass of this class to be notified of the results when using the QtAndroidPrivate::startActivity()
and QtAndroidPrivate::startIntentSender()
APIs.
[pure virtual]
void QAndroidActivityResultReceiver::handleActivityResult(int
receiverRequestCode, int resultCode, const QJniObject &data)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().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: