ESTPeripheralTypeUtilityDelegate
@protocol ESTPeripheralTypeUtilityDelegate <NSObject>
ESTPeripheralTypeUtility delegate protocol.
-
Method invoked after single operation was performed with the device successfully.
Declaration
Objective-C
- (void)peripheral:(id<ESTPeripheral>)peripheral didPerformOperation:(id<ESTBeaconOperationProtocol>)operation andReceivedData:(NSData *)data;
Swift
func peripheral(_ peripheral: ESTPeripheral!, didPerformOperation operation: ESTBeaconOperationProtocol!, andReceivedData data: Data!)
Parameters
peripheral
Peripheral object that performed operation.
operation
Operation that was performed.
data
Data received from the device to be deserialized.
-
Method invoked after single operation failed while communicating with the device.
Declaration
Objective-C
- (void)peripheral:(id<ESTPeripheral>)peripheral didFailOperation:(id<ESTBeaconOperationProtocol>)operation withError:(NSError *)error;
Swift
func peripheral(_ peripheral: ESTPeripheral!, didFailOperation operation: ESTBeaconOperationProtocol!, withError error: Error!)
Parameters
peripheral
Peripheral object that tried to perform operation.
operation
Operation that was to be performed.
error
Error explaining the failure reason.