anko icon indicating copy to clipboard operation
anko copied to clipboard

Add Intent extension functions for View class:

Open acherkashyn opened this issue 7 years ago • 3 comments

View.startActivity() View.startService() View.stopService() View.intentFor()

acherkashyn avatar Jul 29 '18 19:07 acherkashyn

I think having those for View is unnecessary and feels like overkill. Why context extensions is not enough?

4u7 avatar Oct 10 '18 16:10 4u7

@4u7 In my project I don't have too many fragments, but have lots of custom views that trigger separate activities or Android intents. This is just a set of extensions that make these actions a bit easier for Views, the same way as existing extension functions for Fragment or AnkoContext do.

acherkashyn avatar Oct 10 '18 17:10 acherkashyn

These functions would be easier to use, if they were not extension functions, but global functions that get their context from some static global variable if that is possible.

benibela avatar Dec 20 '18 12:12 benibela