mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
32 lines
860 B
Objective-C
32 lines
860 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef enum
|
|
{
|
|
TGPresentationAutoNightModeDisabled,
|
|
TGPresentationAutoNightModeBrightness,
|
|
TGPresentationAutoNightModeScheduled,
|
|
TGPresentationAutoNightModeSunsetSunrise
|
|
} TGPresentationAutoNightMode;
|
|
|
|
@interface TGPresentationAutoNightPreferences : NSObject <NSCoding>
|
|
|
|
@property (nonatomic, readonly) TGPresentationAutoNightMode mode;
|
|
|
|
@property (nonatomic, readonly) CGFloat brightnessThreshold;
|
|
|
|
@property (nonatomic, readonly) int32_t scheduleStart;
|
|
@property (nonatomic, readonly) int32_t scheduleEnd;
|
|
|
|
@property (nonatomic, readonly) CGFloat latitude;
|
|
@property (nonatomic, readonly) CGFloat longitude;
|
|
@property (nonatomic, readonly) NSString *cachedLocationName;
|
|
|
|
@property (nonatomic, readonly) int32_t preferredPalette;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|