mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
38 lines
1.4 KiB
Objective-C
38 lines
1.4 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
typedef enum
|
|
{
|
|
TGStickerKeyboardViewDefaultStyle,
|
|
TGStickerKeyboardViewDarkBlurredStyle,
|
|
TGStickerKeyboardViewPaintStyle,
|
|
TGStickerKeyboardViewPaintDarkStyle
|
|
} TGStickerKeyboardViewStyle;
|
|
|
|
@interface TGStickerKeyboardTabPanel : UIView
|
|
|
|
@property (nonatomic, copy) void (^currentStickerPackIndexChanged)(NSUInteger);
|
|
@property (nonatomic, copy) void (^navigateToGifs)();
|
|
@property (nonatomic, copy) void (^navigateToTrendingFirst)();
|
|
@property (nonatomic, copy) void (^navigateToTrendingLast)();
|
|
@property (nonatomic, copy) void (^openSettings)();
|
|
|
|
@property (nonatomic, copy) void (^toggleExpanded)(void);
|
|
@property (nonatomic, copy) void (^expandInteraction)(CGFloat offset);
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame style:(TGStickerKeyboardViewStyle)style;
|
|
|
|
- (void)setStickerPacks:(NSArray *)stickerPacks showRecent:(bool)showRecent showFavorite:(bool)showFavorite showGroup:(bool)showGroup showGifs:(bool)showGifs showTrendingFirst:(bool)showTrendingFirst showTrendingLast:(bool)showTrendingLast;
|
|
- (void)setCurrentStickerPackIndex:(NSUInteger)currentStickerPackIndex animated:(bool)animated;
|
|
- (void)setCurrentGifsModeSelected;
|
|
- (void)setCurrentTrendingModeSelected;
|
|
- (void)setTrendingStickersBadge:(NSString *)badge;
|
|
|
|
- (void)setAvatarUrl:(NSString *)avatarUrl;
|
|
|
|
- (void)setInnerAlpha:(CGFloat)alpha;
|
|
|
|
- (void)setExpanded:(bool)expanded;
|
|
- (void)updateExpanded:(bool)expanded;
|
|
|
|
@end
|