HSBeaconLinkSuggestion

Objective-C

@interface HSBeaconLinkSuggestion : NSObject <HSBeaconSuggestionItem>

Swift

class HSBeaconLinkSuggestion : NSObject, HSBeaconSuggestionItem

Provide an title and url for suggestion overrides. The url is opened in a modal using SFSafariViewController.

  • Initialize a link suggestion with the specified url and text.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSURL *)url
                                   text:(nonnull NSString *)text;

    Swift

    init(url: URL, text: String)
  • url

    The url the suggestion will open.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSURL *_Nonnull url;

    Swift

    var url: URL { get }
  • The text rendered in the suggestions table.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull text;

    Swift

    var text: String { get }
  • Unavailable

    HSBeaconLinkSuggestion objects are immutable, so always initialze with the url and text constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)init;