Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

@ViewAttached annotation #139

@StefMa

Description

@StefMa

Sometimes we are using viewOrThrow.doSmthWithTheView() to send directly something to the view.
This is useful if we get a callback from the View (in a onclicklistener) for example.
So we don't have to say sendToView { it.doSmthWithTheView() }.

But sometimes we refactore code and oversee se viewOrThrow which should be wrapped into sendToView{}.
For that it would be great if we have annotation like @ViewAttached over the method which says that these method should be only called if a view is attached.
With that we can make sure, that we can safely call viewOrThrow. instead of sendToView{}.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions