QAndroidActivityResultReceiver 類

用於從主 Android 活動 onActivityResult() 迴調的接口。 更多...

頭: #include <QAndroidActivityResultReceiver>
qmake: QT += androidextras
Since: Qt 5.3

公共函數

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

詳細描述

用於從主 Android 活動 onActivityResult() 迴調的接口。

Create a subclass of this class to be notified of the results when using the QtAndroid::startActivity() and QtAndroid::startIntentSender() API。

成員函數文檔編製

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

Reimplement this function to get activity results after starting an activity using either QtAndroid::startActivity () 或 QtAndroid::startIntentSender ()。 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().