Java源码示例:com.hannesdorfmann.mosby3.mvp.delegate.FragmentMvpDelegateImpl
示例1
/**
* * Get the mvp delegate. This is internally used for creating presenter, attaching and
* detaching view from presenter.
*
* <p>
* <b>Please note that only one instance of mvp delegate should be used per fragment
* instance</b>.
* </p>
*
* <p>
* Only override this method if you really know what you are doing.
* </p>
*
* @return {@link FragmentMvpDelegateImpl}
*/
@NonNull protected FragmentMvpDelegate<V, P> getMvpDelegate() {
if (mvpDelegate == null) {
mvpDelegate = new FragmentMvpDelegateImpl<>(this, this, true, true);
}
return mvpDelegate;
}
示例2
/**
* * Get the mvp delegate. This is internally used for creating presenter, attaching and
* detaching view from presenter.
*
* <p>
* <b>Please note that only one instance of mvp delegate should be used per fragment
* instance</b>.
* </p>
*
* <p>
* Only override this method if you really know what you are doing.
* </p>
*
* @return {@link FragmentMvpDelegateImpl}
*/
@NonNull protected FragmentMvpDelegate<V, P> getMvpDelegate() {
if (mvpDelegate == null) {
mvpDelegate = new FragmentMvpDelegateImpl<>(this, this, true, true);
}
return mvpDelegate;
}
示例3
/**
* * Get the mvp delegate. This is internally used for creating presenter, attaching and
* detaching view from presenter.
*
* <p>
* <b>Please note that only one instance of mvp delegate should be used per fragment
* instance</b>.
* </p>
*
* <p>
* Only override this method if you really know what you are doing.
* </p>
*
* @return {@link FragmentMvpDelegateImpl}
*/
@NonNull protected FragmentMvpDelegate<V, P> getMvpDelegate() {
if (mvpDelegate == null) {
mvpDelegate = new FragmentMvpDelegateImpl<>(this, this, true, true);
}
return mvpDelegate;
}
示例4
/**
* Gets the mvp delegate. This is internally used for creating presenter, attaching and
* detaching view from presenter.
*
* <p>
* <b>Please note that only one instance of mvp delegate should be used per fragment instance</b>.
* </p>
*
* <p>
* Only override this method if you really know what you are doing.
* </p>
*
* @return {@link FragmentMvpDelegateImpl}
*/
@NonNull protected FragmentMvpDelegate<V, P> getMvpDelegate() {
if (mvpDelegate == null) {
mvpDelegate = new FragmentMvpDelegateImpl<>(this, this, true, true);
}
return mvpDelegate;
}