ESTDeviceConnectableDelegate

@protocol ESTDeviceConnectableDelegate <NSObject>

ESTDeviceConnectableDelegate defines protocol for ESTDeviceConnectable delegate object.

  • Method invoked when connection to device was successful.

    Declaration

    Objective-C

    - (void)estDeviceConnectionDidSucceed:(nonnull ESTDeviceConnectable *)device;

    Swift

    optional func estDeviceConnectionDidSucceed(_ device: ESTDeviceConnectable)

    Parameters

    device

    Device connection was established with.

  • Method invoked when device disconnect event occurred.

    Declaration

    Objective-C

    - (void)estDevice:(nonnull ESTDeviceConnectable *)device
        didDisconnectWithError:(NSError *_Nullable)error;

    Swift

    optional func estDevice(_ device: ESTDeviceConnectable, didDisconnectWithError error: Error?)

    Parameters

    device

    Disconnected device.

    error

    Error representing reason of disconnect.

  • Method invoked when connection to device failed.

    Declaration

    Objective-C

    - (void)estDevice:(nonnull ESTDeviceConnectable *)device
        didFailConnectionWithError:(nonnull NSError *)error;

    Swift

    optional func estDevice(_ device: ESTDeviceConnectable, didFailConnectionWithError error: Error)

    Parameters

    device

    Device connection failed for.

    error

    Error representing reason of failure.