Classes
The following classes are available globally.
-
HSBeaconprovides the APIs necessary to display the Beacon SDK. It allows you to open the Beacon from the current view controller on screen, or a specific view controller of your choice.Opening the Beacon From The Current View Controller
The Beacon SDK requires an
HSBeaconSettingsobject, which can be initialized using your Beacon ID.HSBeaconSettings *settings = [[HSBeaconSettings alloc] initWithBeaconId:@"beacon-id"]; [HSBeacon openBeacon:settings];Authenticating Users
Authenticating with Beacon is optional, but if you have information you’d like to associate with users, you can do so using
HSBeaconUserand thelogin:method before showing the Beacon.
See moreHSBeaconUser *user = [[HSBeaconUser alloc] init]; user.email = self.emailTextField.text; user.name = self.nameTextField.text; [HSBeacon login:user]; HSBeaconSettings *settings = [[HSBeaconSettings alloc] initWithBeaconId:@"beacon-id"]; [HSBeacon openBeacon:settings];Declaration
Objective-C
@interface HSBeacon : NSObjectSwift
class HSBeacon : NSObject -
A model object representing a new conversation. Values set on this are prepopulated in the new conversation contact form.
See moreDeclaration
Objective-C
@interface HSBeaconContactForm : NSObjectSwift
class HSBeaconContactForm : NSObject -
See moreHSBeaconMessagingSettingscontains settings specific to the messaging portions of Beacon. After creating and configuring a messaging settings object, you can setmessagingSettingsonHSBeaconSettingswith it.Declaration
Objective-C
@interface HSBeaconMessagingSettings : NSObjectSwift
class HSBeaconMessagingSettings : NSObject -
HSBeaconSettingsallows you to customize the Beacon SDK and provide the Beacon identifier to use.Initialization
See moreHSBeaconSettings *settings = [[HSBeaconSettings alloc] initWithBeaconId:@"beacon-id"]; settings.useNavigationBarAppearance = NO;Declaration
Objective-C
@interface HSBeaconSettings : NSObjectSwift
class HSBeaconSettings : NSObject -
Provide an article id for suggestion overrides. The article title and url is looked up from Help Scout before rendering the suggestion.
See moreDeclaration
Objective-C
@interface HSBeaconArticleSuggestion : NSObject <HSBeaconSuggestionItem>Swift
class HSBeaconArticleSuggestion : NSObject, HSBeaconSuggestionItem -
Provide an title and url for suggestion overrides. The url is opened in a modal using
See moreSFSafariViewController.Declaration
Objective-C
@interface HSBeaconLinkSuggestion : NSObject <HSBeaconSuggestionItem>Swift
class HSBeaconLinkSuggestion : NSObject, HSBeaconSuggestionItem -
HSBeaconUserrepresents a user identified with Help Scout, allowing you to match up support requests to your customer base.The current user may be identified by creating an
See moreHSBeaconUserobject, configuring its properties, and then identifying them using[HSBeacon identify:].Declaration
Objective-C
@interface HSBeaconUser : NSObjectSwift
class HSBeaconUser : NSObject
View on GitHub
Classes Reference