Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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.

qtcoreprivate-usage

Definition at line 94 of file qandroidextras_p.h.

Constructor & Destructor Documentation

◆ QAndroidActivityResultReceiver()

QAndroidActivityResultReceiver::QAndroidActivityResultReceiver ( )

Definition at line 523 of file qandroidextras.cpp.

References QScopedPointer< T, Cleanup >::data(), QAndroidActivityResultReceiverPrivate::q, and QtAndroidPrivate::registerActivityResultListener().

+ Here is the call graph for this function:

◆ ~QAndroidActivityResultReceiver()

QAndroidActivityResultReceiver::~QAndroidActivityResultReceiver ( )
virtual

Definition at line 533 of file qandroidextras.cpp.

References QScopedPointer< T, Cleanup >::data(), and QtAndroidPrivate::unregisterActivityResultListener().

+ Here is the call graph for this function:

Member Function Documentation

◆ handleActivityResult()

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.

Friends And Related Symbol Documentation

◆ QAndroidActivityResultReceiverPrivate

Definition at line 103 of file qandroidextras_p.h.


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