HSBeaconSettings

Objective-C

@interface HSBeaconSettings : NSObject

Swift

class HSBeaconSettings : NSObject

HSBeaconSettings allows you to customize the Beacon SDK and provide the Beacon identifier to use.

Initialization

HSBeaconSettings *settings = [[HSBeaconSettings alloc] initWithBeaconId:@"beacon-id"];
settings.useNavigationBarAppearance = NO;
  • The Beacon ID to use.

    Note

    This can be found during Beacon creation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSString *beaconId;

    Swift

    var beaconId: String { get }
  • The title used in the main Beacon interface. This is Support by default.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull beaconTitle;

    Swift

    var beaconTitle: String { get set }
  • Display strings from BeaconLocalizable.strings instead of those setup in the Beacon Web UI

    Declaration

    Objective-C

    @property BOOL useLocalTranslationOverrides;

    Swift

    var useLocalTranslationOverrides: Bool { get set }
  • Allows the Beacon SDK to use the UIAppearance settings for UINavigationController. This is false by default, and will instead use the Beacon color defined in the Beacon Builder.

    Declaration

    Objective-C

    @property BOOL useNavigationBarAppearance;

    Swift

    var useNavigationBarAppearance: Bool { get set }
  • Disable the contact options manually if it’s enabled in the Beacon config.

    This will not enable the contact options if it’s disabled in the config.

    Declaration

    Objective-C

    @property BOOL messagingEnabled;

    Swift

    var messagingEnabled: Bool { get set }
  • Disable previous messages manually if messaging is enabled in the Beacon config.

    Declaration

    Objective-C

    @property BOOL enablePreviousMessages;

    Swift

    var enablePreviousMessages: Bool { get set }
  • Disable the Docs integration manually if it’s enabled in the Beacon config.

    This will not enable Docs if it’s disabled in the config.

    Declaration

    Objective-C

    @property BOOL docsEnabled;

    Swift

    var docsEnabled: Bool { get set }
  • Disable the Chat integration manually if it’s enabled in the Beacon config.

    This will not enable Chat if it’s disabled in the config.

    Declaration

    Objective-C

    @property BOOL chatEnabled;

    Swift

    var chatEnabled: Bool { get set }
  • Override the focusMode configured on the Beacon config.

    Declaration

    Objective-C

    @property (nonatomic) HSBeaconFocusMode focusModeOverride;

    Swift

    var focusModeOverride: HSBeaconFocusMode { get set }
  • Was focusModeOverride set with a local override.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL focusModeOverrideSet;

    Swift

    var focusModeOverrideSet: Bool { get }
  • This replaces the default blue color used for clickable text throughout Beacon. For example, you may want to set this to the tintColor of your window to match the look and feel of the rest of your app.

    Declaration

    Objective-C

    @property UIColor *_Nonnull tintColorOverride;

    Swift

    var tintColorOverride: UIColor { get set }
  • Used for customizing the runtime behavior of the Beacon SDK

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<HSBeaconDelegate> delegate;

    Swift

    weak var delegate: HSBeaconDelegate? { get set }
  • Override the color from the Beacon Builder. The useNavigationBarAppearance option will override this value.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *color;

    Swift

    var color: UIColor? { get set }
  • Set different display options for messaging.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) HSBeaconMessagingSettings *messagingSettings;

    Swift

    var messagingSettings: HSBeaconMessagingSettings { get }
  • Initialize Beacon settings with a given Beacon ID.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBeaconId:(NSString *_Nonnull)beaconId;

    Swift

    init(beaconId: String)
  • Unavailable

    HSBeaconSettings must be initialized with a beaconId

    -[HSBeaconSettings init] is not available because HSBeaconSettings must be initialized with a beaconId Use the initWithBeaconId: method to display the Beacon SDK.

    Declaration

    Objective-C

    - (nonnull instancetype)init;