Device battery indicators on your Lock Screen
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

KAIBatteryCell.h 1.9KB

4年前
4年前
4年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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)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) BOOL charging;
  27. @property (nonatomic, assign) BOOL batterySaverModeActive;
  28. @property (nonatomic, strong) NSString *identifier;
  29. -(id)glyph;
  30. -(id)kaiCellForDevice;
  31. @end
  32. @interface KAIBatteryCell : UIView
  33. @property (nonatomic, strong) BCBatteryDevice *device;
  34. @property (nonatomic, strong) UILabel *label;
  35. @property (nonatomic, strong) UILabel *percentLabel;
  36. @property (nonatomic, strong) UIImageView *glyphView;
  37. @property (nonatomic, strong) _UIBatteryView *battery;
  38. @property (nonatomic, strong) NSLayoutConstraint *width;
  39. @property (nonatomic, strong) NSLayoutConstraint *height;
  40. -(instancetype)initWithFrame:(CGRect)arg1 device:(BCBatteryDevice *)device;
  41. -(void)updateInfo;
  42. +(instancetype)cellForDeviceIfExists:(BCBatteryDevice *)device frameToCreateNew:(CGRect)arg2;
  43. +(void)resetArray;
  44. @end