Device battery indicators on your Lock Screen
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

76 Zeilen
2.9KB

  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)_sortedDevices;
  20. - (id)connectedDevices; //ios 14
  21. + (id)sharedInstance;
  22. @end
  23. @interface BCBatteryDevice : NSObject
  24. @property (nonatomic, strong) id kaiCell;
  25. @property (nonatomic, strong) NSString *name;
  26. @property (nonatomic, assign) long long percentCharge;
  27. @property (nonatomic, assign, getter=isCharging) BOOL charging;
  28. @property (nonatomic, assign, getter=isFake) BOOL fake;
  29. @property (nonatomic, assign, getter=isInternal) BOOL internal;
  30. @property (nonatomic, assign, getter=isBatterySaverModeActive) BOOL batterySaverModeActive;
  31. @property (nonatomic, strong) NSString *identifier;
  32. - (id)glyph; //ios 13
  33. - (id)batteryWidgetGlyph; //ios 14
  34. - (id)kaiCellForDevice;
  35. - (void)resetKaiCellForNewPrefs;
  36. @end
  37. @interface KAIBatteryCell : UIView
  38. @property (nonatomic, weak) BCBatteryDevice *device;
  39. @property (nonatomic, strong) UILabel *label;
  40. @property (nonatomic, strong) UILabel *percentLabel;
  41. @property (nonatomic, strong) UIImageView *glyphView;
  42. @property (nonatomic, strong) _UIBatteryView *battery;
  43. - (instancetype)initWithFrame:(CGRect)arg1 device:(BCBatteryDevice *)device;
  44. - (void)updateInfo;
  45. @end
  46. @interface KAIStackView : UIStackView
  47. @property (nonatomic, strong) NSLayoutConstraint *heightConstraint;
  48. @end
  49. @interface KAIBatteryPlatter : UIScrollView <UIScrollViewDelegate>
  50. @property (nonatomic, assign) BOOL shouldUpdate;
  51. @property (nonatomic, strong) UIView *stackHolder;
  52. @property (nonatomic, assign) NSInteger number;
  53. @property (nonatomic, assign) NSInteger oldCountOfDevices;
  54. @property (nonatomic, strong) NSLayoutConstraint *heightConstraint;
  55. @property (nonatomic, strong) NSLayoutConstraint *subviewAligner;
  56. @property (nonatomic, strong) KAIStackView *stack;
  57. @property (nonatomic, assign) BOOL isUpdating;
  58. @property (nonatomic, assign) BOOL queued;
  59. + (KAIBatteryPlatter *)sharedInstance;
  60. - (instancetype)initWithFrame:(CGRect)arg1;
  61. - (void)resetOffset;
  62. - (void)refreshForPrefs;
  63. - (void)updateBattery;
  64. - (void)calculateHeight;
  65. @end
  66. @interface UIView (kai)
  67. - (void)_didRemoveSubview:(UIView *)arg1;
  68. @end