PDRCoreAppWindow.h
2.06 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// PDR_Application.h
// Pandora
//
// Created by Mac Pro on 12-12-22.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PDRCoreAppFrame.h"
#import "PDRCoreApp.h"
@protocol PDRCoreAppWindowDelegate<NSObject>
@optional
/**
@brief 是否终止关闭appframe只有调用plus.ui.close接口关闭才会触发改事件
@param appframe 将要关闭的appframe
@return BOOL TRUE 关闭 FALSE 不关闭
*/
- (BOOL)shouldCloseAppFrame:(PDRCoreAppFrame*)appframe;
/**
@brief 是否显示appframe 只有调用plus.ui.show接口显示才会触发改事件
@param appframe 将要关闭的appframe
@return BOOL TRUE 关闭 FALSE 不关闭
*/
- (BOOL)shouldShowAppFrame:(PDRCoreAppFrame*)appframe;
@end
@interface PDRCoreAppWindow : UIView
/**
@brief PDRCoreAppWindowDelegate
*/
@property(nonatomic, assign)id<PDRCoreAppWindowDelegate> appWindowdelegate;
/**
@brief 注册appframe
@param appFrame 将要关闭的appframe
@return BOOL TRUE 成功 重复注册同一窗口为失败
*/
- (BOOL)registerFrame:(PDRCoreAppFrame*)appFrame;
/**
@brief 从window中删除appframe
@param appFrame 将要关闭的appframe
@return BOOL TRUE 成功 重复注册同一窗口为失败
*/
- (BOOL)unRegisterFrame:(PDRCoreAppFrame*)appFrame;
/**
@brief 根据指定的ID获取appframe
@param uuid ID
@return PDRCoreAppFrame*
*/
- (PDRCoreAppFrame*)getFrameByID:(NSString*)uuid;
/**
@brief 根据指定的name获取appframe
@param name ID
@return PDRCoreAppFrame*
*/
- (PDRCoreAppFrame*)getFrameByName:(NSString*)name;
/**
@brief 关闭指定的appframe该接口不会发出shouldCloseAppFrame:
而是直接关闭
@param appFrame name
*/
- (void)closeFrame:(PDRCoreAppFrame*)appFrame;
/**
@brief 显示指定的appframe 该接口不会发出shouldShowAppFrame:
而是直接显示
@param farme name
*/
- (void)showFrame:(PDRCoreAppFrame*)farme;
/**
@brief 获取所有frame
@return NSArray*
*/
- (NSArray*)allFrames;
/**
@brief 获取当前可见的frame
@return NSArray*
*/
- (NSArray*)getDisplayFrames;
- (BOOL)recoveryCrashWebview;
@end