Header
@objcMembers
open class Header : SBUBaseChannelModule.Header, SBUChannelInfoHeaderViewDelegate
A module component that represent the header of SBUOpenChannelModule
.
-
A view that shows the information of the open channel such as a cover image, a channel name and a description.
Declaration
Swift
public lazy var channelInfoView: UIView { get set }
-
A property to hide
channelInfoView
.Declaration
Swift
public var hidesChannelInfoView: Bool { get set }
-
Undocumented
Declaration
Swift
public var overlaysChannelInfoView: Bool { get set }
-
The object that acts as the delegate of the header component. The delegate must adopt the
SBUOpenChannelModuleHeaderDelegate
protocolDeclaration
Swift
public weak var delegate: SBUOpenChannelModuleHeaderDelegate? { get set }
-
Configures
SBUOpenChannelModule.Header
object with thedelegate
and thetheme
.Declaration
Swift
open func configure( delegate: SBUOpenChannelModuleHeaderDelegate, theme: SBUChannelTheme )
Parameters
delegate
The object that acts as the delegate of the header component. The delegate must adopt the
SBUOpenChannelModuleHeaderDelegate
protocol.theme
The object that is used as the theme of the header component. The theme must adopt the
SBUChannelTheme
class.
-
Declaration
Swift
open override func setupViews()
-
Declaration
Swift
open override func setupLayouts()
-
Declaration
Swift
open override func setupStyles(theme: SBUChannelTheme? = nil)
-
Declaration
Swift
open override func updateStyles(theme: SBUChannelTheme? = nil)
-
Updates styles of the views in the header component with the theme.
Declaration
Swift
open func updateStyles(overlaid: Bool = false)
Parameters
overlaid
When the it’s on overlaying mode, assign
true
for this parameter. The default value isfalse
.
-
Updates the right bar button item with operator status of the current user.
Declaration
Swift
open func updateBarButton(isOperator: Bool)
-
Undocumented
Declaration
Swift
open func didSelectChannelInfo()
-
Undocumented
Declaration
Swift
open func didSelectChannelParticipants()
-
Declaration
Swift
open override func onTapLeftBarButton()
-
Declaration
Swift
open override func onTapRightBarButton()