kotlin中使用Handler
jumpToPayHandler = Handler { var questionformModel = QuetionFormModel(2, spinner.text.toString(), typePrice, editDesc.text.toString(), typeId, uploadData, uploadVideo, telephone.text.toString()) // RouterUtils.toPayQuestionActivity(questionformModel) ARouter.getInstance().build(RouterConstant.COLLEGE_PAY_QUESTION_ACTIVITY) .withParcelable(RouterConstant.PARCELABLE_KEY, questionformModel) .navigation(this@AskActivity, 7652) advertisingDialog.dismiss() false }
此处使用了lambda表达式,
注意最后的false