HSBeaconDelegate

@protocol HSBeaconDelegate <NSObject>

HSBeaconDelegate can optionally be set on your HSBeaconSettings object to customize the runtime behavior of the Beacon SDK.

  • The prefill method is called before showing the new conversation contact form. Any values set on the form object will be prepopulated for the customer.

    Declaration

    Objective-C

    - (void)prefill:(nonnull HSBeaconContactForm *)form;
  • This method is called the first time the Beacon is displayed, after the configuration has been successfully loaded over the network.

    Declaration

    Objective-C

    - (void)onBeaconInitialOpen:(nonnull HSBeaconSettings *)beaconSettings;
  • This method is called anytime the Beacon modal is displayed.

    Declaration

    Objective-C

    - (void)onBeaconOpen:(nonnull HSBeaconSettings *)beaconSettings;
  • This method is called the first time the Beacon is dismissed each session.

    Declaration

    Objective-C

    - (void)onBeaconInitialClose:(nonnull HSBeaconSettings *)beaconSettings;
  • This method is called every time the Beacon modal is dismissed.

    Declaration

    Objective-C

    - (void)onBeaconClose:(nonnull HSBeaconSettings *)beaconSettings;