forked from inloop/AndroidViewModel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIView.java
More file actions
18 lines (16 loc) · 727 Bytes
/
IView.java
File metadata and controls
18 lines (16 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package eu.inloop.viewmodel;
import eu.inloop.viewmodel.base.ViewModelBaseActivity;
import eu.inloop.viewmodel.base.ViewModelBaseFragment;
/**
* Any Activity or Fragment that needs a ViewModel needs to implement this interface.
* You don't need to implement it yourself - use {@link ViewModelBaseActivity} and
* {@link ViewModelBaseFragment} instead.
*/
public interface IView {
/**
* Implement this method to remove the ViewModel associated with the Fragment or Activity.
* This is usually implemented by calling {@link ViewModelHelper#removeViewModel()},
* see {@link ViewModelBaseActivity#removeViewModel()} and {@link ViewModelBaseFragment#removeViewModel()}.
*/
void removeViewModel();
}