ESTBeaconConnectionDelegate
Deprecated
Deprecated since 4.31.0.
@protocol ESTBeaconConnectionDelegate <NSObject>
The ESTBeaconConnectionDelegate
protocol defines the delegate methods used to receive updates about <ESTBeaconConnection>
connection status, as well as sensor related updates once a connection to the beacon has been established.
-
Tells the delegate that Estimote Cloud verified device for authorized user.
Declaration
Objective-C
- (void)beaconConnection:(nonnull ESTBeaconConnection *)connection didVerifyWithData:(ESTBeaconVO *_Nullable)data error:(NSError *_Nullable)error;
Swift
optional func beaconConnection(_ connection: ESTBeaconConnection, didVerifyWithData data: ESTBeaconVO?, error: Error?)
Parameters
connection
The beacon connection object reporting the event.
data
Information about the device stored in the Estimote Cloud.
error
An error object containing the error code that indicates why connection failed.
-
Tells the delegate that an attempt to connect to a beacon succeeded and the connection has been established.
Declaration
Objective-C
- (void)beaconConnectionDidSucceed:(nonnull ESTBeaconConnection *)connection;
Swift
optional func beaconConnectionDidSucceed(_ connection: ESTBeaconConnection)
Parameters
connection
The beacon connection object reporting the event.
-
Tells the delegate that an attempt to connect to a beacon has failed.
Declaration
Objective-C
- (void)beaconConnection:(nonnull ESTBeaconConnection *)connection didFailWithError:(nonnull NSError *)error;
Swift
optional func beaconConnection(_ connection: ESTBeaconConnection, didFailWithError error: Error)
Parameters
connection
The beacon connection object reporting the event.
error
An error object containing the error code that indicates why connection failed.
-
Tells the delegate that a previously connected beacon has disconnected.
Declaration
Objective-C
- (void)beaconConnection:(nonnull ESTBeaconConnection *)connection didDisconnectWithError:(NSError *_Nullable)error;
Swift
optional func beaconConnection(_ connection: ESTBeaconConnection, didDisconnectWithError error: Error?)
Parameters
connection
The beacon connection object reporting the event.
error
An error object containing the error code that indicates why the beacon disconnected.
-
Tells the delegate that a beacon’s
<[ESTBeaconConnection motionState]>
value has changed.Declaration
Objective-C
- (void)beaconConnection:(nonnull ESTBeaconConnection *)connection motionStateChanged:(ESTBeaconMotionState)state;
Swift
optional func beaconConnection(_ connection: ESTBeaconConnection, motionStateChanged state: ESTBeaconMotionState)
Parameters
connection
The beacon connection object reporting the event.
state
The new
motionState
value. -
Tells the delegate that a beacon’s RSSI value was updated.
Declaration
Objective-C
- (void)beaconConnection:(nonnull ESTBeaconConnection *)connection didUpdateRSSI:(nonnull NSNumber *)rssi;
Swift
optional func beaconConnection(_ connection: ESTBeaconConnection, didUpdateRSSI rssi: NSNumber)
Parameters
connection
The beacon connection object reporting the event.
rssi
The new rssi value.