SearchInAppsSDK Framework Reference

  • DetentOptions is an enum that defines how the search suggestions view is presented.

  • It offers four options: mediumOnly, largeOnly, mediumByDefault, and largeByDefault, controlling the view's initial and adjustable size.

  • mediumOnly and largeOnly fix the view to half and full screen respectively, while mediumByDefault and largeByDefault allow resizing between half and full screen with a default starting size.

  • These options are represented by integer values (0-3) accessible in both Swift and Objective-C.

DetentOptions

enum DetentOptions : NSInteger {}

The detent options for the search suggestions view. Medium = half screen, Large = full screen.

  • half of the screen only, cannot grow or shrink.

    Declaration

    Swift

    case mediumOnly = 0

    Objective-C

    DetentOptionsMediumOnly = 0
  • full screen only, cannot grow or shrink.

    Declaration

    Swift

    case largeOnly = 1

    Objective-C

    DetentOptionsLargeOnly = 1
  • half screen by default, but can grow to full screen.

    Declaration

    Swift

    case mediumByDefault = 2

    Objective-C

    DetentOptionsMediumByDefault = 2
  • full screen by default, but can shrink to half screen.

    Declaration

    Swift

    case largeByDefault = 3

    Objective-C

    DetentOptionsLargeByDefault = 3