developer
2023-05-20 c1ffd99c4b60066774eb2c97b31e4aaa014e7f51
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
//
//  AppDelegate.h
//  BuWanVideo2.0
//
//  Created by weikou on 16/7/28.
//  Copyright © 2016年 com.yeshi.buwansheque.ios. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
@protocol YTHNetDelegateRecommend <NSObject>
 
/**
 *  0 . 不可用   1. 移动网络   2.wifi   3.当前网络未知
 */
- (void)updateNet:(NSInteger )status;
 
@end
 
/**
 *  应用退到后台和从后台进入APP遵循的协议
 */
@protocol YTHBacktoApplicationsDelegate <NSObject>
 
@required
//从后台进入应用
- (void)backApplication;
//退出应用
- (void)OutApplication;
 
@end
 
@interface AppDelegate : UIResponder <UIApplicationDelegate>
 
@property (strong, nonatomic) UIWindow *window;
 
@property bool inited;
 
@property (nonatomic , assign) id<YTHNetDelegateRecommend> YNetdelegateRecommend;
 
@property (nonatomic , weak) id<YTHBacktoApplicationsDelegate> YBackAppDelegate;
 
-(void)initData;
@end