링크 Share

suee97·2022년 3월 2일
0
val context = LocalContext.current
val sendIntent: Intent = Intent().apply {
    action = Intent.ACTION_SEND
    putExtra(Intent.EXTRA_TEXT, stringResource(id = R.string.playstore_link))
        type = "text/plain"
	}
val shareIntent = Intent.createChooser(sendIntent, null)
// ... 온클릭 이벤트 처리
context.startActivity(shareIntent)
profile
승언

0개의 댓글