| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // Autogenerated from Pigeon (v9.1.0), do not edit directly.
- // See also: https://pub.dev/packages/pigeon
- #import <Foundation/Foundation.h>
- @protocol FlutterBinaryMessenger;
- @protocol FlutterMessageCodec;
- @class FlutterError;
- @class FlutterStandardTypedData;
- NS_ASSUME_NONNULL_BEGIN
- @class FLTOrientation;
- @class FLTPosition;
- @class FLTSportWear;
- @class FLTHeartRateMeasurement;
- @interface FLTOrientation : NSObject
- + (instancetype)makeWithX:(nullable NSNumber *)x
- y:(nullable NSNumber *)y
- z:(nullable NSNumber *)z;
- @property(nonatomic, strong, nullable) NSNumber * x;
- @property(nonatomic, strong, nullable) NSNumber * y;
- @property(nonatomic, strong, nullable) NSNumber * z;
- @end
- @interface FLTPosition : NSObject
- + (instancetype)makeWithLatitude:(nullable NSNumber *)latitude
- longitude:(nullable NSNumber *)longitude
- altitude:(nullable NSNumber *)altitude
- bearing:(nullable NSNumber *)bearing
- accuracy:(nullable NSNumber *)accuracy
- speed:(nullable NSNumber *)speed
- timeMs:(nullable NSNumber *)timeMs;
- @property(nonatomic, strong, nullable) NSNumber * latitude;
- @property(nonatomic, strong, nullable) NSNumber * longitude;
- @property(nonatomic, strong, nullable) NSNumber * altitude;
- @property(nonatomic, strong, nullable) NSNumber * bearing;
- @property(nonatomic, strong, nullable) NSNumber * accuracy;
- /// the speed at the time of this location in meters per second.
- @property(nonatomic, strong, nullable) NSNumber * speed;
- @property(nonatomic, strong, nullable) NSNumber * timeMs;
- @end
- @interface FLTSportWear : NSObject
- + (instancetype)makeWithAddress:(nullable NSString *)address
- name:(nullable NSString *)name
- rssi:(nullable NSNumber *)rssi
- batteryLevel:(nullable NSNumber *)batteryLevel;
- @property(nonatomic, copy, nullable) NSString * address;
- @property(nonatomic, copy, nullable) NSString * name;
- @property(nonatomic, strong, nullable) NSNumber * rssi;
- @property(nonatomic, strong, nullable) NSNumber * batteryLevel;
- @end
- @interface FLTHeartRateMeasurement : NSObject
- + (instancetype)makeWithDeviceMac:(nullable NSString *)deviceMac
- heartRate:(nullable NSNumber *)heartRate
- contactDetected:(nullable NSNumber *)contactDetected
- rrIntervals:(nullable NSArray<NSNumber *> *)rrIntervals
- timestampMill:(nullable NSNumber *)timestampMill;
- @property(nonatomic, copy, nullable) NSString * deviceMac;
- @property(nonatomic, strong, nullable) NSNumber * heartRate;
- @property(nonatomic, strong, nullable) NSNumber * contactDetected;
- @property(nonatomic, strong, nullable) NSArray<NSNumber *> * rrIntervals;
- @property(nonatomic, strong, nullable) NSNumber * timestampMill;
- @end
- /// The codec used by FLTSensorApi.
- NSObject<FlutterMessageCodec> *FLTSensorApiGetCodec(void);
- @protocol FLTSensorApi
- /// 获取当前位置,[force]为 false 时,
- /// 优先使用 lastPosition,为 true 强制重新获取当前位置。
- - (void)getCurrentPositionForce:(NSNumber *)force completion:(void (^)(FLTPosition *_Nullable, FlutterError *_Nullable))completion;
- - (void)locationStartMinTimeMs:(NSNumber *)minTimeMs minDistanceM:(NSNumber *)minDistanceM error:(FlutterError *_Nullable *_Nonnull)error;
- - (void)locationStopWithError:(FlutterError *_Nullable *_Nonnull)error;
- - (void)sportWearScanStartWithError:(FlutterError *_Nullable *_Nonnull)error;
- - (void)sportWearScanStopWithError:(FlutterError *_Nullable *_Nonnull)error;
- - (void)askEnableBluetoothWithCompletion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion;
- - (void)sportWearConnectWear:(FLTSportWear *)wear completion:(void (^)(FlutterError *_Nullable))completion;
- - (void)sportWearDisconnectWear:(FLTSportWear *)wear completion:(void (^)(FlutterError *_Nullable))completion;
- /// 是否开启位置服务
- ///
- /// @return `nil` only when `error != nil`.
- - (nullable NSNumber *)isLocationServiceOpenWithError:(FlutterError *_Nullable *_Nonnull)error;
- /// @return `nil` only when `error != nil`.
- - (nullable NSNumber *)getYDPIWithError:(FlutterError *_Nullable *_Nonnull)error;
- /// @return `nil` only when `error != nil`.
- - (nullable NSNumber *)getXDPIWithError:(FlutterError *_Nullable *_Nonnull)error;
- /// 只需要空实现即可,class必须有函数引用才会生成代码
- - (void)toGenAllClassOrientation:(FLTOrientation *)orientation hrm:(FLTHeartRateMeasurement *)hrm position:(FLTPosition *)position error:(FlutterError *_Nullable *_Nonnull)error;
- @end
- extern void FLTSensorApiSetup(id<FlutterBinaryMessenger> binaryMessenger, NSObject<FLTSensorApi> *_Nullable api);
- NS_ASSUME_NONNULL_END
|