이 페이지에서

QAndroidActivityResultReceiver Class

Android 메인 액티비티에서 onActivityResult()의 콜백에 사용되는 인터페이스입니다. 더 보기...

헤더: #include <QtCore/private/qandroidextras_p.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS CorePrivate)
target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)
qmake: QT += core-private
다음부터: Qt 6.2부터
상태: 기술 미리보기

이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

공개 함수

virtual void handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data) = 0

상세 설명

QtAndroidPrivate::startActivity() 및 QtAndroidPrivate::startIntentSender() API를 사용할 때 결과를 알림받으려면 이 클래스의 하위 클래스를 만드십시오.

멤버 함수 문서

[pure virtual] void QAndroidActivityResultReceiver::handleActivityResult(int receiverRequestCode, int resultCode, const QJniObject &data)

QtAndroidPrivate::startActivity() 또는 QtAndroidPrivate::startIntentSender()을 사용하여 액티비티를 시작한 후, 액티비티 결과를 가져오려면 이 함수를 재구현하십시오. receiverRequestCode 는 원래 startActivity() 또는 startIntentSender() 함수에 전달된, 이 리시버에 고유한 요청 코드입니다. resultCode 는 액티비티에서 반환된 결과이며, data 는 null이거나 android.content.Intent 클래스의 Java 객체입니다. 마지막 두 인자는 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.