CurrentChatUserAvatarView
A UIControl
subclass that is designed to show the avatar of the currently logged in user.
open class CurrentChatUserAvatarView: _Control, ThemeProvider
It uses CurrentChatUserController
for its input data and is able to update the avatar automatically based
on the currently logged-in user.
Inheritance
_Control
, CurrentChatUserControllerDelegate
, ThemeProvider
Properties
controller
StreamChat
's controller that observe the currently logged-in user.
open var controller: CurrentChatUserController?
avatarView
The view that shows the current user's avatar.
open private(set) lazy var avatarView: ChatAvatarView = components
.avatarView.init()
.withoutAutoresizingMaskConstraints
isEnabled
override open var isEnabled: Bool
isHighlighted
override open var isHighlighted: Bool
isSelected
override open var isSelected: Bool
Methods
setUpAppearance()
override open func setUpAppearance()
setUp()
override open func setUp()
setUpLayout()
override open func setUpLayout()
updateContent()
@objc override open func updateContent()
currentUserController(_:didChangeCurrentUser:)
public func currentUserController(
_ controller: CurrentChatUserController,
didChangeCurrentUser: EntityChange<CurrentChatUser>
)