QAndroidActivityResultReceiver Class
Interfaccia utilizzata per i callback da onActivityResult() nell'attività principale di Android. Altro...
| Intestazione: | #include <QtCore/private/qandroidextras_p.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS CorePrivate) target_link_libraries(mytarget PRIVATE Qt6::CorePrivate) |
| qmake: | QT += core-private |
| A partire da: | Qt 6.2 |
| Stato: | Anteprima tecnologica |
Questa classe è in anteprima tecnologica ed è soggetta a modifiche.
Funzioni pubbliche
| virtual void | handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data) = 0 |
Descrizione dettagliata
Creare una sottoclasse di questa classe per ricevere notifiche sui risultati durante l'utilizzo delle API QtAndroidPrivate::startActivity() e QtAndroidPrivate::startIntentSender().
Documentazione delle funzioni membro
[pure virtual] void QAndroidActivityResultReceiver::handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data)
Reimplementare questa funzione per ottenere i risultati dell'attività dopo aver avviato un'attività utilizzando QtAndroidPrivate::startActivity() o QtAndroidPrivate::startIntentSender(). L'receiverRequestCode è il codice di richiesta univoco per questo ricevitore, originariamente passato alle funzioni startActivity() o startIntentSender(). resultCode è il risultato restituito dall’attività, mentre data è null oppure un oggetto Java della classe android.content.Intent. Entrambi gli ultimi due argomenti sono identici agli argomenti passati a onActivityResult().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.