IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAndroidActivityResultReceiver Class

Interface used for callbacks from onActivityResult() in the main Android activity.

This class was introduced in Qt 6.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAndroidActivityResultReceiver Class

  • Header: QtCore/private/qandroidextras_p.h

  • Since: Qt 6.2

  • qmake: QT += core-private

  • Inherited By:

This class is under development and is subject to change.

Detailed Description

Create a subclass of this class to be notified of the results when using the QtAndroidPrivate::startActivity() and QtAndroidPrivate::startIntentSender() APIs.

When building with CMake, use the following commands to use private Qt Core APIs:

 
Sélectionnez
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)

Member Function Documentation

 

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+