SCCameraKitTextInputKeyboardAccessoryProvider

Objective-C

@protocol SCCameraKitTextInputKeyboardAccessoryProvider <NSObject>

Swift

protocol TextInputKeyboardAccessoryProvider : NSObjectProtocol

Protocol for representing a text input view on-screen for lenses that request it.

  • The view to show on top of the keyboard.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIView *_Nonnull accessoryView;

    Swift

    var accessoryView: UIView { get }
  • The text view associated with the input being provided.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UITextView *_Nonnull textView;

    Swift

    var textView: UITextView { get }
  • Placeholder text to show in the text view before the user has input any text. May be empty.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *placeholderText;

    Swift

    var placeholderText: String? { get set }
  • The maximum height the accessoryView can grow to. This will be considered when setting the safe area for the lens.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat maximumHeight;

    Swift

    var maximumHeight: CGFloat { get }