![]() |
Qt 6.x
The Qt SDK
|
\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate More...
#include <qandroidextras_p.h>
Public Member Functions | |
QAndroidActivityResultReceiver () | |
virtual | ~QAndroidActivityResultReceiver () |
virtual void | handleActivityResult (int receiverRequestCode, int resultCode, const QJniObject &data)=0 |
Reimplement this function to get activity results after starting an activity using either QtAndroidPrivate::startActivity() or QtAndroidPrivate::startIntentSender(). | |
Friends | |
class | QAndroidActivityResultReceiverPrivate |
\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate
Interface used for callbacks from onActivityResult() in the main Android activity.
Create a subclass of this class to be notified of the results when using the QtAndroidPrivate::startActivity()
and QtAndroidPrivate::startIntentSender()
APIs.
qtcoreprivate-usage
Definition at line 94 of file qandroidextras_p.h.
QAndroidActivityResultReceiver::QAndroidActivityResultReceiver | ( | ) |
Definition at line 523 of file qandroidextras.cpp.
References QScopedPointer< T, Cleanup >::data(), QAndroidActivityResultReceiverPrivate::q, and QtAndroidPrivate::registerActivityResultListener().
|
virtual |
Definition at line 533 of file qandroidextras.cpp.
References QScopedPointer< T, Cleanup >::data(), and QtAndroidPrivate::unregisterActivityResultListener().
|
pure virtual |
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().
Implemented in QAndroidActivityCallbackResultReceiver.
|
friend |
Definition at line 103 of file qandroidextras_p.h.