Foxit PDF SDK  9.1
PanelHost.h
1 
18 #import <UIKit/UIKit.h>
19 
21 typedef NS_ENUM(NSUInteger, FSPanelType) {
34 };
35 
37 @interface TabItem : NSObject
38 @property (nonatomic, strong) UIImage *image;
39 @property (nonatomic, strong) UIImage *selectImage;
40 @end
41 
43 @protocol IPanelSpec <NSObject>
45 - (int)getType;
46 - (UIView *)getTopToolbar;
47 - (UIView *)getContentView;
48 - (TabItem *)getTabItem;
49 - (void)onActivated;
50 - (void)onDeactivated;
51 @end
52 
54 @interface PanelHost : NSObject
55 @property (nonatomic, strong) NSMutableArray<id<IPanelSpec>> *specs;
56 @property (nonatomic, strong) id<IPanelSpec> currentSpec;
57 @property (nonatomic, strong) UIView *contentView;
58 
59 + (instancetype)new NS_UNAVAILABLE;
60 - (instancetype)init NS_UNAVAILABLE;
61 
62 - (void)addSpec:(id<IPanelSpec>)spec;
63 - (void)insertSpec:(id<IPanelSpec>)spec atIndex:(int)index;
64 - (void)removeSpec:(id<IPanelSpec>)spec;
66 - (void)reloadData;
67 @end
PanelHost
Panel UI implementation.
Definition: PanelHost.h:55
-[IPanelSpec-p getTabItem]
TabItem * getTabItem()
TabItem
The custom UI, which acts as a button.
Definition: PanelHost.h:38
FSPanelTypeAttachment
@ FSPanelTypeAttachment
Attachment panel type.
Definition: PanelHost.h:25
TabItem::image
UIImage * image
Definition: PanelHost.h:38
IPanelSpec-p
Definition: PanelHost.h:43
-[IPanelSpec-p onDeactivated]
void onDeactivated()
-[IPanelSpec-p getTopToolbar]
UIView * getTopToolbar()
FSPanelTypeReadingBookmark
@ FSPanelTypeReadingBookmark
Reading bookmark panel type.
Definition: PanelHost.h:29
FSPanelTypeCustom
@ FSPanelTypeCustom
Custom panel type.
Definition: PanelHost.h:33
TabItem::selectImage
UIImage * selectImage
Definition: PanelHost.h:39
-[IPanelSpec-p getType]
int getType()
Return one of the predefined enumeration value FSPanelType. If the caller will implement a new panel ...
FSPanelType
FSPanelType
Panel types.
Definition: PanelHost.h:21
-[IPanelSpec-p onActivated]
void onActivated()
-[IPanelSpec-p getContentView]
UIView * getContentView()
FSPanelTypeOutline
@ FSPanelTypeOutline
Outline panel type.
Definition: PanelHost.h:27
FSPanelTypeAnnotation
@ FSPanelTypeAnnotation
Annotation panel type.
Definition: PanelHost.h:23
FSPanelTypeDigitalSignature
@ FSPanelTypeDigitalSignature
Reading digital signature panel type.
Definition: PanelHost.h:31