Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
/ankoPublic archive

Add Intent extension functions for View class:#659

Open
acherkashyn wants to merge1 commit intoKotlin:master
base:master
Choose a base branch
Loading
fromacherkashyn:master

Conversation

acherkashyn
Copy link

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

View.startActivity()View.startService()View.stopService()View.intentFor()
@4u7
Copy link
Contributor

4u7 commentedOct 10, 2018

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

@acherkashyn
Copy link
Author

@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.

@benibela
Copy link

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.

piotrek1543, alexey-mercari, and srayhunter reacted with thumbs up emoji

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@acherkashyn@4u7@benibela

[8]ページ先頭

©2009-2025 Movatter.jp