ESTMonitoringV2ManagerDelegate

@protocol ESTMonitoringV2ManagerDelegate <NSObject>

Describes messages sent from Monitoring Manager to its delegate object.

  • Called when monitoring has failed because of invalid configuration, permissions or Bluetooth problems. The error object’s code is a case of ESTMonitoringV2ManagerError enum. The error object’s domain is ESTMonitoringV2ManagerErrorDomain.

    Declaration

    Objective-C

    - (void)monitoringManager:(nonnull ESTMonitoringV2Manager *)manager
             didFailWithError:(nonnull NSError *)error;

    Swift

    func monitoringManager(_ manager: ESTMonitoringV2Manager, didFailWithError error: Error)

    Parameters

    manager

    Monitoring manager reporting the error.

    error

    Error object.

  • Called when monitoring has started successfully.

    Declaration

    Objective-C

    - (void)monitoringManagerDidStart:(nonnull ESTMonitoringV2Manager *)manager;

    Swift

    optional func monitoringManagerDidStart(_ manager: ESTMonitoringV2Manager)

    Parameters

    manager

    Monitoring manager.

  • Called when a monitoring state for a proximity zone defined by a beacon was first determined.

    Declaration

    Objective-C

    - (void)monitoringManager:(nonnull ESTMonitoringV2Manager *)manager
        didDetermineInitialState:(ESTMonitoringState)state
         forBeaconWithIdentifier:(nonnull NSString *)identifier;

    Swift

    optional func monitoringManager(_ manager: ESTMonitoringV2Manager, didDetermineInitialState state: ESTMonitoringState, forBeaconWithIdentifier identifier: String)

    Parameters

    manager

    Monitoring manager reporting the event.

    state

    Monitoring state for the zone.

    identifier

    Identifier of the beacon defining the zone.

  • Called when user entered proximity defined by meanTriggerDistance of the monitored device.

    Declaration

    Objective-C

    - (void)monitoringManager:(nonnull ESTMonitoringV2Manager *)manager
        didEnterDesiredRangeOfBeaconWithIdentifier:(nonnull NSString *)identifier;

    Swift

    optional func monitoringManager(_ manager: ESTMonitoringV2Manager, didEnterDesiredRangeOfBeaconWithIdentifier identifier: String)

    Parameters

    manager

    Monitoring manager reporting the event.

    identifier

    Device identifier broadcasted in the Estimote Location packet that triggered the enter event.

  • Called when user exited proximity defined by meanTriggerDistance of the monitored device.

    Declaration

    Objective-C

    - (void)monitoringManager:(nonnull ESTMonitoringV2Manager *)manager
        didExitDesiredRangeOfBeaconWithIdentifier:(nonnull NSString *)identifier;

    Swift

    optional func monitoringManager(_ manager: ESTMonitoringV2Manager, didExitDesiredRangeOfBeaconWithIdentifier identifier: String)

    Parameters

    manager

    Monitoring manager reporting the event.

    identifier

    Device identifier broadcasted in the Estimote Location packet that triggered the enter event.