MBNNScanResult.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNManufacturerData;
  4. @class MBNNServiceData;
  5. NS_SWIFT_NAME(ScanResult)
  6. __attribute__((visibility ("default")))
  7. @interface MBNNScanResult : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithId:(nonnull NSString *)id
  13. localName:(nonnull NSString *)localName
  14. manufacturerData:(nonnull NSArray<MBNNManufacturerData *> *)manufacturerData
  15. serviceData:(nonnull NSArray<MBNNServiceData *> *)serviceData
  16. txPowerLevel:(int32_t)txPowerLevel
  17. serviceUUIDs:(nonnull NSArray<NSString *> *)serviceUUIDs
  18. overflowServiceUUIDs:(nonnull NSArray<NSString *> *)overflowServiceUUIDs
  19. solicitedServiceUUIDs:(nonnull NSArray<NSString *> *)solicitedServiceUUIDs
  20. isConnectable:(BOOL)isConnectable
  21. rssi:(int32_t)rssi
  22. monotonicTimestampNanoseconds:(int64_t)monotonicTimestampNanoseconds;
  23. /** identifier of peripheral */
  24. @property (nonatomic, readonly, nonnull, copy) NSString *id;
  25. /** local name of a peripheral */
  26. @property (nonatomic, readonly, nonnull, copy) NSString *localName;
  27. /** manufacturer-specific advertisement data */
  28. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNManufacturerData *> *manufacturerData;
  29. /** service-specific advertisement data */
  30. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNServiceData *> *serviceData;
  31. /** transmit power of a peripheral */
  32. @property (nonatomic, readonly) int32_t txPowerLevel;
  33. /** service UUIDs */
  34. @property (nonatomic, readonly, nonnull, copy) NSArray<NSString *> *serviceUUIDs;
  35. /** UUIDs found in the overflow area of the advertisement data */
  36. @property (nonatomic, readonly, nonnull, copy) NSArray<NSString *> *overflowServiceUUIDs;
  37. /** solicited service UUIDs */
  38. @property (nonatomic, readonly, nonnull, copy) NSArray<NSString *> *solicitedServiceUUIDs;
  39. /** indicates whether the advertising event type is connectable */
  40. @property (nonatomic, readonly, getter=isIsConnectable) BOOL isConnectable;
  41. /** the current received signal strength indicator (RSSI) of the peripheral, in decibels */
  42. @property (nonatomic, readonly) int32_t rssi;
  43. /** monotonic timestamp in nanoseconds */
  44. @property (nonatomic, readonly) int64_t monotonicTimestampNanoseconds;
  45. - (BOOL)isEqualToScanResult:(nonnull MBNNScanResult *)other;
  46. @end