QtAndroid startActivity与捆绑

时间:2019-08-09 01:12:23

标签: android c++ qt android-intent startactivityforresult

QtAndroid::startActivity中,与Android相比,没有选择添加Bundle

例如Activity::startActivityForResult签名如下所示,

public void startActivityForResult(@RequiresPermission Intent intent, int requestCode,
        @Nullable Bundle options)

QT对方的签名是

void QtAndroid::startActivity(const QAndroidJniObject &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver = nullptr)

所以我的问题是,如何将Bundle传递给QtAndroid:startActivity

我很确定我们可以在putExtras中操纵Intent吗?

0 个答案:

没有答案