Skip to content

Commit 5bad5f0

Browse files
author
Daniel
committed
Update javadoc for getViewOptional
1 parent 900cccf commit 5bad5f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/src/main/java/eu/inloop/viewmodel/AbstractViewModel.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public T getView() {
7373
return mView;
7474
}
7575

76+
/**
77+
* Alternative to {@link #getView()}. This method will never return a null view - not even in case the current Fragment or
78+
* Activity is already destroyed or between orientation change. It will return a dummy
79+
* implementation in that case.
80+
* @return the View instance which implements {@link T}. It's never null.
81+
*/
7682
@CheckResult
7783
@NonNull
7884
public T getViewOptional() {

0 commit comments

Comments
 (0)