mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
25 lines
798 B
Objective-C
25 lines
798 B
Objective-C
#import <LegacyComponents/TGLocationMapViewController.h>
|
|
#import <LegacyComponents/LegacyComponentsContext.h>
|
|
|
|
#import <CoreLocation/CoreLocation.h>
|
|
|
|
@class TGVenueAttachment;
|
|
@class TGUser;
|
|
|
|
typedef enum {
|
|
TGLocationPickerControllerDefaultIntent,
|
|
TGLocationPickerControllerCustomLocationIntent
|
|
} TGLocationPickerControllerIntent;
|
|
|
|
@interface TGLocationPickerController : TGLocationMapViewController
|
|
|
|
@property (nonatomic, copy) void (^locationPicked)(CLLocationCoordinate2D coordinate, TGVenueAttachment *venue);
|
|
|
|
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context intent:(TGLocationPickerControllerIntent)intent;
|
|
|
|
@property (nonatomic, strong) id peer;
|
|
@property (nonatomic, assign) bool allowLiveLocations;
|
|
@property (nonatomic, assign) bool sharingLiveLocation;
|
|
|
|
@end
|