Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// روش معمول
fun createIntent(intentData: String, intentAction: String): Intent {
val intent = Intent()
intent.action = intentAction
intent.data=Uri.parse(intentData)
return intent
}
// روش پیشرفته و زنجیری
fun createIntent(intentData: String, intentAction: String) =
Intent().apply { action = intentAction }
.apply { data = Uri.parse(intentData) }سی
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment