1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGLocationTrackingButton.h
2015-10-01 19:19:52 +03:00

22 lines
730 B
Objective-C

#import <MapKit/MKMapView.h>
typedef enum {
TGLocationTrackingModeNone,
TGLocationTrackingModeFollow,
TGLocationTrackingModeFollowWithHeading
} TGLocationTrackingMode;
@interface TGLocationTrackingButton : UIButton
@property (nonatomic, assign) TGLocationTrackingMode trackingMode;
- (void)setTrackingMode:(TGLocationTrackingMode)trackingMode animated:(bool)animated;
@property (nonatomic, assign, getter=isLocationAvailable) bool locationAvailable;
- (void)setLocationAvailable:(bool)available animated:(bool)animated;
+ (TGLocationTrackingMode)locationTrackingModeWithUserTrackingMode:(MKUserTrackingMode)mode;
+ (MKUserTrackingMode)userTrackingModeWithLocationTrackingMode:(TGLocationTrackingMode)mode;
@end