DBFILESHighlightSpan

Objective-C

@interface DBFILESHighlightSpan : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESHighlightSpan : NSObject, DBSerializable, NSCopying

The HighlightSpan struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • String to be determined whether it should be highlighted or not.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull highlightStr;

    Swift

    var highlightStr: String { get }
  • The string should be highlighted or not.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull isHighlighted;

    Swift

    var isHighlighted: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithHighlightStr:(nonnull NSString *)highlightStr
                                   isHighlighted:(nonnull NSNumber *)isHighlighted;

    Swift

    init(highlightStr: String, isHighlighted: NSNumber)

    Parameters

    highlightStr

    String to be determined whether it should be highlighted or not.

    isHighlighted

    The string should be highlighted or not.

    Return Value

    An initialized instance.