Foxit PDF SDK  9.1
FSMainToolbar Class Reference
Inheritance diagram for FSMainToolbar:
FSMainBottombar FSMainTopbar

Instance Methods

(void) - addItem:atPosition:
 Add item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values.. More...
 
(__kindof UIStackView *) - getToolbarContentView
 Get the the toolbar content view. More...
 
(instancetype) - NS_UNAVAILABLE
 
(void) - removeItem:atPosition:
 Removes item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values.. More...
 
(void) - removeItemAtPosition:index:
 Removes the index item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values.. More...
 
(void) - setBackgroundColor:
 Set the background color. More...
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 Disable the default initialization. More...
 

Properties

CGFloat contentHeight
 Set content bar height. More...
 
NSArray< FSMainToolbarItem * > * itemsForPositionCenter
 Get/Set the items displayed on the toolbar center. More...
 
NSArray< FSMainToolbarItem * > * itemsForPositionLeft
 Get/Set the items displayed on the toolbar left. More...
 
NSArray< FSMainToolbarItem * > * itemsForPositionRight
 Get/Set the items displayed on the toolbar right. More...
 

Method Documentation

◆ addItem:atPosition:

- (void) addItem: (FSMainToolbarItem *)  item
atPosition: (FSMainToolbarItemPosition position 

Add item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values..

◆ getToolbarContentView

- (__kindof UIStackView *) getToolbarContentView

Get the the toolbar content view.

Returns
The toolbar content view. It's a subclass of UIStackView, the axis of the default is UILayoutConstraintAxisVertical

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

+ (instancetype) NS_UNAVAILABLE

Disable the default initialization.

◆ removeItem:atPosition:

- (void) removeItem: (FSMainToolbarItem *)  item
atPosition: (FSMainToolbarItemPosition position 

Removes item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values..

◆ removeItemAtPosition:index:

- (void) removeItemAtPosition: (FSMainToolbarItemPosition position
index: (NSUInteger)  index 

Removes the index item at position, Please refer to {@linkFSMainToolbarItemPositionXXX} and FSMainToolbarItemPosition values and it would be one of these values..

◆ setBackgroundColor:

- (void) setBackgroundColor: (UIColor *)  color

Set the background color.

Property Documentation

◆ contentHeight

- (CGFloat) contentHeight
readwritenonatomicassign

Set content bar height.

◆ itemsForPositionCenter

- (NSArray<FSMainToolbarItem *>*) itemsForPositionCenter
readwritenonatomiccopy

Get/Set the items displayed on the toolbar center.

◆ itemsForPositionLeft

- (NSArray<FSMainToolbarItem *>*) itemsForPositionLeft
readwritenonatomiccopy

Get/Set the items displayed on the toolbar left.

◆ itemsForPositionRight

- (NSArray<FSMainToolbarItem *>*) itemsForPositionRight
readwritenonatomiccopy

Get/Set the items displayed on the toolbar right.