com.hannesdorfmann.mosby.mvp.MvpPresenter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mvp-common Show documentation
Show all versions of mvp-common Show documentation
Containing the common interfaces of mosby mvp
The newest version!
/*
* Copyright 2015 Hannes Dorfmann.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hannesdorfmann.mosby.mvp;
/**
* The base interface for each mvp presenter
*
* @author Hannes Dorfmann
* @since 1.0.0
*/
public interface MvpPresenter {
/**
* Set or attach the view to this presenter
*/
public void attachView(V view);
/**
* Will be called if the view has been destroyed. Typically this method will be invoked from
* Activity.detachView()
or Fragment.onDestroyView()
*/
public void detachView(boolean retainInstance);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy