IBaseView.java
782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.share.mvpsdk.base;
import android.support.annotation.NonNull;
/**
* Created by Horrarndoo on 2017/5/2.
* fragment base view接口
*/
public interface IBaseView {
/**
* 初始化presenter
* <p>
* 此方法返回的presenter对象不可为空
*/
@NonNull
BasePresenter initPresenter();
/**
* 显示toast消息
*
* @param msg 要显示的toast消息字符串
*/
void showToast(String msg);
/**
* 显示等待dialog
*
* @param waitMsg 等待消息字符串
*/
void showWaitDialog(String waitMsg);
/**
* 隐藏等待dialog
*/
void hideWaitDialog();
/**
* 隐藏键盘
*/
void hideKeybord();
/**
* 回退
*/
void back();
}