分享 直接调用系统的分享。。

2021-04-13  本文已影响0人  赖益文

startActivity(Intent.createChooser(Intent().apply {

    action = Intent.ACTION_SEND

    putExtra(Intent.EXTRA_TEXT,"{${mViewModel.showTitle}}:${mViewModel.url}")

type ="text/plain"

},"分享到"))

popupto 导航到目的地。然后popInclusive=“true”  清空所有的栈,指保留一个。。

上一篇下一篇

猜你喜欢

热点阅读