mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
26 lines
662 B
Swift
26 lines
662 B
Swift
import Foundation
|
|
import AsyncDisplayKit
|
|
|
|
protocol InstantPageNode {
|
|
func updateIsVisible(_ isVisible: Bool)
|
|
|
|
func transitionNode(media: InstantPageMedia) -> ASDisplayNode?
|
|
func updateHiddenMedia(media: InstantPageMedia?)
|
|
func update(strings: PresentationStrings, theme: InstantPageTheme)
|
|
}
|
|
|
|
/*@class TGInstantPageMedia;
|
|
|
|
@protocol TGInstantPageDisplayView <NSObject>
|
|
|
|
- (void)setIsVisible:(bool)isVisible;
|
|
|
|
@optional
|
|
|
|
- (void)setOpenMedia:(void (^)(id))openMedia;
|
|
- (void)setOpenFeedback:(void (^)())openFeedback;
|
|
- (UIView *)transitionViewForMedia:(TGInstantPageMedia *)media;
|
|
- (void)updateHiddenMedia:(TGInstantPageMedia *)media;
|
|
|
|
@end*/
|