mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-07 13:09:49 +00:00
43 lines
1.3 KiB
Objective-C
43 lines
1.3 KiB
Objective-C
//
|
|
// _ASTransitionContext.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Levi McCallum on 2/4/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "ASContextTransitioning.h"
|
|
|
|
@class ASLayout;
|
|
@class _ASTransitionContext;
|
|
|
|
@protocol _ASTransitionContextLayoutDelegate <NSObject>
|
|
|
|
- (NSArray<ASDisplayNode *> *)currentSubnodesWithTransitionContext:(_ASTransitionContext *)context;
|
|
|
|
- (NSArray<ASDisplayNode *> *)insertedSubnodesWithTransitionContext:(_ASTransitionContext *)context;
|
|
- (NSArray<ASDisplayNode *> *)removedSubnodesWithTransitionContext:(_ASTransitionContext *)context;
|
|
|
|
- (ASLayout *)transitionContext:(_ASTransitionContext *)context layoutForKey:(NSString *)key;
|
|
- (ASSizeRange)transitionContext:(_ASTransitionContext *)context constrainedSizeForKey:(NSString *)key;
|
|
|
|
@end
|
|
|
|
@protocol _ASTransitionContextCompletionDelegate <NSObject>
|
|
|
|
- (void)transitionContext:(_ASTransitionContext *)context didComplete:(BOOL)didComplete;
|
|
|
|
@end
|
|
|
|
@interface _ASTransitionContext : NSObject <ASContextTransitioning>
|
|
|
|
@property (assign, readonly, nonatomic, getter=isAnimated) BOOL animated;
|
|
|
|
- (instancetype)initWithAnimation:(BOOL)animated
|
|
layoutDelegate:(id<_ASTransitionContextLayoutDelegate>)layoutDelegate
|
|
completionDelegate:(id<_ASTransitionContextCompletionDelegate>)completionDelegate;
|
|
|
|
@end
|