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
QAndroidActivityResultReceiver Class Referenceabstract

\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate More...

#include <qandroidextras_p.h>

Inheritance diagram for QAndroidActivityResultReceiver:
Collaboration diagram for QAndroidActivityResultReceiver:

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

Detailed Description

\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate

Since
6.2

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.

Definition at line 96 of file qandroidextras_p.h.

Constructor & Destructor Documentation

◆ QAndroidActivityResultReceiver()

QAndroidActivityResultReceiver::QAndroidActivityResultReceiver ( )

Definition at line 513 of file qandroidextras.cpp.

◆ ~QAndroidActivityResultReceiver()

QAndroidActivityResultReceiver::~QAndroidActivityResultReceiver ( )
virtual

Definition at line 523 of file qandroidextras.cpp.

Member Function Documentation

◆ handleActivityResult()

virtual void QAndroidActivityResultReceiver::handleActivityResult ( int receiverRequestCode,
int resultCode,
const QJniObject & data )
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.

◆ QAndroidActivityResultReceiverPrivate

Definition at line 105 of file qandroidextras_p.h.


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