Device battery indicators on your Lock Screen
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

76 lines
2.8KB

  1. #import <UIKit/UIKit.h>
  2. #import <substrate.h>
  3. @interface _UIBatteryView : UIView
  4. @property (nonatomic, assign) CGFloat chargePercent;
  5. @property (nonatomic, assign) CGFloat bodyColorAlpha;
  6. @property (nonatomic, assign) CGFloat pinColorAlpha;
  7. @property (nonatomic, assign) BOOL showsPercentage;
  8. @property (nonatomic, assign) BOOL saverModeActive;
  9. @property (nonatomic, assign) BOOL showsInlineChargingIndicator;
  10. @property (nonatomic, assign) NSInteger chargingState;
  11. @end
  12. @interface MTMaterialView : UIView
  13. @property (nonatomic, assign) BOOL recipeDynamic;
  14. - (id)_initWithRecipe:(NSInteger)arg1 configuration:(NSInteger)arg2 initialWeighting:(CGFloat)arg3 scaleAdjustment:(id)arg4;
  15. + (id)materialViewWithRecipe:(NSInteger)arg1 options:(NSInteger)arg2 initialWeighting:(CGFloat)arg3 scaleAdjustment:(id)arg4;
  16. @end
  17. @interface BCBatteryDeviceController : NSObject
  18. @property (nonatomic, strong) NSArray *sortedDevices;
  19. - (id)connectedDevices;
  20. + (id)sharedInstance;
  21. @end
  22. @interface BCBatteryDevice : NSObject
  23. @property (nonatomic, strong) id kaiCell;
  24. @property (nonatomic, strong) NSString *name;
  25. @property (nonatomic, assign) long long percentCharge;
  26. @property (nonatomic, assign, getter=isCharging) BOOL charging;
  27. @property (nonatomic, assign, getter=isFake) BOOL fake;
  28. @property (nonatomic, assign, getter=isInternal) BOOL internal;
  29. @property (nonatomic, assign, getter=isBatterySaverModeActive) BOOL batterySaverModeActive;
  30. @property (nonatomic, strong) NSString *identifier;
  31. - (id)glyph; // ios 13
  32. - (id)batteryWidgetGlyph; // ios 14
  33. - (id)kaiCellForDevice;
  34. - (void)resetKaiCellForNewPrefs;
  35. @end
  36. @interface KAIBatteryCell : UIView
  37. @property (nonatomic, weak) BCBatteryDevice *device;
  38. @property (nonatomic, strong) UILabel *label;
  39. @property (nonatomic, strong) UILabel *percentLabel;
  40. @property (nonatomic, strong) UIImageView *glyphView;
  41. @property (nonatomic, strong) _UIBatteryView *battery;
  42. - (instancetype)initWithFrame:(CGRect)arg1 device:(BCBatteryDevice *)device;
  43. - (void)updateInfo;
  44. @end
  45. @interface KAIStackView : UIStackView
  46. @property (nonatomic, strong) NSLayoutConstraint *heightConstraint;
  47. @end
  48. @interface KAIBatteryPlatter : UIScrollView <UIScrollViewDelegate>
  49. @property (nonatomic, assign) BOOL shouldUpdate;
  50. @property (nonatomic, strong) UIView *stackHolder;
  51. @property (nonatomic, assign) NSInteger number;
  52. @property (nonatomic, assign) NSInteger oldCountOfDevices;
  53. @property (nonatomic, strong) NSLayoutConstraint *heightConstraint;
  54. @property (nonatomic, strong) NSLayoutConstraint *subviewAligner;
  55. @property (nonatomic, strong) KAIStackView *stack;
  56. @property (nonatomic, assign) BOOL isUpdating;
  57. @property (nonatomic, assign) BOOL queued;
  58. + (KAIBatteryPlatter *)sharedInstance;
  59. - (instancetype)initWithFrame:(CGRect)arg1;
  60. - (void)resetOffset;
  61. - (void)refreshForPrefs;
  62. - (void)updateBattery;
  63. - (void)calculateHeight;
  64. @end
  65. @interface UIView (kai)
  66. - (void)_didRemoveSubview:(UIView *)arg1;
  67. @end