PeerInfoPaneNode
struct
PeerInfoStatusData
1
2
var text: String
var isActivity: Bool
protocol
PeerInfoPaneNode
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
var isReady: Signal<Bool, NoError> { get }
var parentController: ViewController? { get set }
// associated status
var status: Signal<PeerInfoStatusData?, NoError> { get }
// response to tabbar offset
var tabBarOffsetUpdated: ((ContainedViewLayoutTransition) -> Void)? { get set }
var tabBarOffset: CGFloat { get }
// update layout
func update(size: CGSize, topInset: CGFloat, sideInset: CGFloat, bottomInset: CGFloat, visibleHeight: CGFloat, isScrollingLockedAtTop: Bool, expandProgress: CGFloat, presentationData: PresentationData, synchronous: Bool, transition: ContainedViewLayoutTransition)
// whether scrollToTop
func scrollToTop() -> Bool
// velocity
func transferVelocity(_ velocity: CGFloat)
// cancel preview gestures
func cancelPreviewGestures()
// find loaded message
func findLoadedMessage(id: MessageId) -> Message?
// transiton node from gallery
func transitionNodeForGallery(messageId: MessageId, media: Media) -> (ASDisplayNode, CGRect, () -> (UIView?, UIView?))?
// add view to transition surface
func addToTransitionSurface(view: UIView)
// update media hidden
func updateHiddenMedia()
// update selected message
func updateSelectedMessages(animated: Bool)
// ensure message visible
func ensureMessageIsVisible(id: MessageId)