mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-23 03:31:09 +00:00
20 lines
817 B
Objective-C
20 lines
817 B
Objective-C
#import <SSignalKit/SSignalKit.h>
|
|
#import <LegacyComponents/LegacyComponentsContext.h>
|
|
|
|
@class TGViewController;
|
|
@class TGMenuSheetController;
|
|
|
|
typedef enum
|
|
{
|
|
TGPassportAttachIntentDefault,
|
|
TGPassportAttachIntentIdentityCard,
|
|
TGPassportAttachIntentSelfie,
|
|
TGPassportAttachIntentMultiple
|
|
} TGPassportAttachIntent;
|
|
|
|
@interface TGPassportAttachMenu : NSObject
|
|
|
|
+ (TGMenuSheetController *)presentWithContext:(id<LegacyComponentsContext>)context parentController:(TGViewController *)parentController menuController:(TGMenuSheetController *)menuController title:(NSString *)title intent:(TGPassportAttachIntent)intent uploadAction:(void (^)(SSignal *, void (^)(void)))uploadAction sourceView:(UIView *)sourceView sourceRect:(CGRect (^)(void))sourceRect barButtonItem:(UIBarButtonItem *)barButtonItem;
|
|
|
|
@end
|