Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<WFWeightScaleDelegate> Protocol Reference

Provides the interface for callback methods used by the WFWeightScaleConnection. More...

#import <WFWeightScaleDelegate.h>

+ Inheritance diagram for <WFWeightScaleDelegate>:
+ Collaboration diagram for <WFWeightScaleDelegate>:

Instance Methods

(void) - wsConnection:didAddNewUserRecord:
 After a new user profile has been successfully added to the scale and assigned an ID, this method will be called with the completed WFBTLEWeightScaleUser object as a parameter. More...
 
(void) - wsConnection:didReceiveUserId:
 Invoked when the WFWeightScaleConnection receives response from new user id request. More...
 
(void) - wsConnection:didReceiveUserRecords:
 Invoked when the WFWeightScaleConnection receives user records from the device. More...
 
(void) - wsConnection:didReceiveWeightHistory:
 Invoked when the WFWeightScaleConnection receives weight history from the device. More...
 
(void) - wsConnection:userProfileRejected:forOverlappingWith:
 Invoked when a user profile which has been added contains overlapping weight ranges with and existing profile on the scale. More...
 

Detailed Description

Provides the interface for callback methods used by the WFWeightScaleConnection.

Method Documentation

- (void) wsConnection: (WFWeightScaleConnection *)  wsConn
didAddNewUserRecord: (WFBTLEWeightScaleUser *)  user 

After a new user profile has been successfully added to the scale and assigned an ID, this method will be called with the completed WFBTLEWeightScaleUser object as a parameter.

Parameters
wsConnThe WFWeightScaleConnection instance.
userNewly added WFWeightScaleUser object.
- (void) wsConnection: (WFWeightScaleConnection *)  wsConn
didReceiveUserId: (int)  userId 
optional

Invoked when the WFWeightScaleConnection receives response from new user id request.

Parameters
wsConnThe WFWeightScaleConnection instance.
userIdinteger representing the next available userId.
- (void) wsConnection: (WFWeightScaleConnection *)  wsConn
didReceiveUserRecords: (NSArray *)  users 

Invoked when the WFWeightScaleConnection receives user records from the device.

Parameters
wsConnThe WFWeightScaleConnection instance.
usersAn NSArray of WFWeightScaleUser objects.
- (void) wsConnection: (WFWeightScaleConnection *)  wsConn
didReceiveWeightHistory: (NSArray *)  history 

Invoked when the WFWeightScaleConnection receives weight history from the device.

Parameters
wsConnThe WFWeightScaleConnection instance.
historyAn NSArray of WFWeightScaleData objects.
- (void) wsConnection: (WFWeightScaleConnection *)  wsConn
userProfileRejected: (WFBTLEWeightScaleUser *)  rejectedProfile
forOverlappingWith: (WFBTLEWeightScaleUser *)  overlappedProfile 

Invoked when a user profile which has been added contains overlapping weight ranges with and existing profile on the scale.

Parameters
wsConnThe WFWeightScaleConnection instance.
rejectedProfileThe profile sent by the user to be stored
overlappedProfileThe existing profile with which it overlaps