QAndroidActivityResultReceiver Class

메인 안드로이드 활동의 onActivityResult()의 콜백에 사용되는 인터페이스입니다. 더 보기...

Header: #include <QtCore/private/qandroidextras_p.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
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()에 전달된 인수와 동일합니다.

© 2025 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.