Objective-CclassWatchKit
WKInterfaceDevice
@interface WKInterfaceDevice : NSObject
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- classNSObject
Members 70
- method
+ (id)currentDevice; - ivar
float _batteryLevel;+0xc - ivar
BOOL _batteryMonitoringEnabled;+0x8 - ivar
long long _batteryState;+0x18 - ivar
long long _crownOrientation;+0x38 - ivar
NSString *_deviceLocalizedModel;+0x58 - ivar
NSString *_deviceModel;+0x50 - ivar
NSString *_deviceName;+0x48 - ivar
NSString *_deviceSystemName;+0x60 - ivar
NSString *_deviceSystemVersion;+0x40 - ivar
long long _layoutDirection;+0x28 - ivar
NSString *_preferredContentSizeCategory;+0x20 - ivar
struct CGRect { struct CGPoint { double x; double y; } origin; struct CGSize { double width; double height; } size; } _screenBounds;+0x68 - ivar
double _screenScale;+0x10 - ivar
long long _wristLocation;+0x30 - method
- (void).cxx_destruct; - method
- (BOOL)addCachedImage:(id)arg0 name:(id)arg1; - method
- (BOOL)addCachedImageWithData:(id)arg0 name:(id)arg1; - method
- (float)batteryLevel; - method
- (long long)batteryState; - method
- (id)cachedImages; - method
- (long long)crownOrientation; - method
- (id)deviceLocalizedModel; - method
- (id)deviceModel; - method
- (id)deviceName; - method
- (id)deviceSystemName; - method
- (id)deviceSystemVersion; - method
- (BOOL)isBatteryMonitoringEnabled; - method
- (long long)layoutDirection; - method
- (id)localizedModel; - method
- (id)model; - method
- (id)name; - method
- (void)playHaptic:(long long)arg0; - method
- (id)preferredContentSizeCategory; - method
- (void)removeAllCachedImages; - method
- (void)removeCachedImageWithName:(id)arg0; - method
- (CGRect)screenBounds; - method
- (double)screenScale; - method
- (void)setBatteryMonitoringEnabled:(BOOL)arg0; - method
- (void)setDeviceLocalizedModel:(id)arg0; - method
- (void)setDeviceModel:(id)arg0; - method
- (void)setDeviceName:(id)arg0; - method
- (void)setDeviceSystemName:(id)arg0; - method
- (void)setDeviceSystemVersion:(id)arg0; - method
- (void)setPreferredContentSizeCategory:(id)arg0; - method
- (void)setScreenBounds:(CGRect)arg0; - method
- (void)setScreenScale:(double)arg0; - method
- (id)systemName; - method
- (id)systemVersion; - method
- (long long)wristLocation; - property
@property(readonly, nonatomic) float batteryLevel; - property
@property(getter=isBatteryMonitoringEnabled, nonatomic) BOOL batteryMonitoringEnabled; - property
@property(readonly, nonatomic) long long batteryState; - property
@property(readonly, nonatomic) NSDictionary *cachedImages; - property
@property(readonly, nonatomic) long long crownOrientation; - property
@property(copy, nonatomic) NSString *deviceLocalizedModel; - property
@property(copy, nonatomic) NSString *deviceModel; - property
@property(copy, nonatomic) NSString *deviceName; - property
@property(copy, nonatomic) NSString *deviceSystemName; - property
@property(copy, nonatomic) NSString *deviceSystemVersion; - property
@property(readonly, nonatomic) long long layoutDirection; - property
@property(readonly, copy, nonatomic) NSString *localizedModel; - property
@property(readonly, copy, nonatomic) NSString *model; - property
@property(readonly, copy, nonatomic) NSString *name; - property
@property(copy, nonatomic) NSString *preferredContentSizeCategory; - property
@property(nonatomic) CGRect screenBounds; - property
@property(nonatomic) double screenScale; - property
@property(readonly, copy, nonatomic) NSString *systemName; - property
@property(readonly, copy, nonatomic) NSString *systemVersion; - property
@property(readonly, nonatomic) long long wristLocation;
Header
@interface WKInterfaceDevice : NSObject { BOOL _batteryMonitoringEnabled; float _batteryLevel; double _screenScale; long long _batteryState; NSString *_preferredContentSizeCategory; long long _layoutDirection; long long _wristLocation; long long _crownOrientation; NSString *_deviceSystemVersion; NSString *_deviceName; NSString *_deviceModel; NSString *_deviceLocalizedModel; NSString *_deviceSystemName; struct CGRect _screenBounds; } @property (nonatomic) struct CGRect screenBounds; @property (nonatomic) double screenScale; @property (nonatomic, copy) NSString *preferredContentSizeCategory; @property (nonatomic, copy) NSString *deviceSystemVersion; @property (nonatomic, copy) NSString *deviceName; @property (nonatomic, copy) NSString *deviceModel; @property (nonatomic, copy) NSString *deviceLocalizedModel; @property (nonatomic, copy) NSString *deviceSystemName; @property (nonatomic, readonly) NSDictionary *cachedImages; @property (nonatomic, getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled; @property (nonatomic, readonly) float batteryLevel; @property (nonatomic, readonly) long long batteryState; @property (nonatomic, readonly) long long layoutDirection; @property (nonatomic, readonly) long long wristLocation; @property (nonatomic, readonly) long long crownOrientation; @property (nonatomic, copy, readonly) NSString *systemVersion; @property (nonatomic, copy, readonly) NSString *name; @property (nonatomic, copy, readonly) NSString *model; @property (nonatomic, copy, readonly) NSString *localizedModel; @property (nonatomic, copy, readonly) NSString *systemName; + (id)currentDevice; - (id)deviceModel; - (id)systemName; - (double)screenScale; - (float)batteryLevel; - (void)setScreenScale:(double)screenScale; - (id)systemVersion; - (struct CGRect)screenBounds; - (id)model; - (id)preferredContentSizeCategory; - (id)name; - (void).cxx_destruct; - (long long)layoutDirection; - (void)setPreferredContentSizeCategory:(id)preferredContentSizeCategory; - (id)deviceName; - (void)setDeviceName:(id)deviceName; - (long long)batteryState; - (BOOL)isBatteryMonitoringEnabled; - (id)localizedModel; - (void)setBatteryMonitoringEnabled:(BOOL)batteryMonitoringEnabled; - (void)setScreenBounds:(struct CGRect)screenBounds; - (void)setDeviceModel:(id)deviceModel; - (id)deviceSystemVersion; - (id)deviceLocalizedModel; - (long long)crownOrientation; - (long long)wristLocation; - (BOOL)addCachedImage:(id)addCachedImage name:(id)name; - (BOOL)addCachedImageWithData:(id)data name:(id)name; - (id)cachedImages; - (id)deviceSystemName; - (void)playHaptic:(long long)playHaptic; - (void)removeAllCachedImages; - (void)removeCachedImageWithName:(id)name; - (void)setDeviceLocalizedModel:(id)deviceLocalizedModel; - (void)setDeviceSystemName:(id)deviceSystemName; - (void)setDeviceSystemVersion:(id)deviceSystemVersion; @end