Lore
Lore

Reputation: 1928

Move a method from an interface to another

I'm trying to move a Kotlin interface method to another existing interface, by refactoring. But a can't find the right option in Android Studio. Is there a way to do that?

Upvotes: 0

Views: 351

Answers (1)

theThapa
theThapa

Reputation: 631

@Lore, We can do that, with following steps. But with this, it seems like the newly created interface implements the existing one. So, we just have to delete that implementation in the new interface file.

Select function -> Refactor -> Extract -> Interface... -> Extract to separate file -> Check Move

Upvotes: 1

Related Questions