RBSearchContainerViewDelegate Protocol Reference

Conforms to NSObject
Declared in RBSearchContainerView.h

Overview

The delegate that receives search and state transition events for an RBSearchContainerView object.

– searchContainerView:didRequestSearchWithQuery: required method

Called when the search container view requests that a search be performed.

- (void)searchContainerView:(nonnull RBSearchContainerView *)searchContainerView didRequestSearchWithQuery:(nonnull NSString *)queryString

Parameters

searchContainerView

The RBSearchContainerView object.

queryString

The search query string.

Declared In

RBSearchContainerView.h

– searchContainerViewShouldOpenOnQueryEdit:

Whether or not search mode should be opened when the query string field is tapped.

- (BOOL)searchContainerViewShouldOpenOnQueryEdit:(nonnull RBSearchContainerView *)searchContainerView

Parameters

searchContainerView

The RBSearchContainerView object.

Return Value

Whether or not to open search mode.

Declared In

RBSearchContainerView.h

– searchContainerViewShouldCloseOnCancelTapped:

Whether or not search mode should be closed when the cancel button is tapped.

- (BOOL)searchContainerViewShouldCloseOnCancelTapped:(nonnull RBSearchContainerView *)searchContainerView

Parameters

searchContainerView

The RBSearchContainerView object.

Return Value

Whether or not to close search mode.

Declared In

RBSearchContainerView.h

– searchContainerView:willOpenSearchWithAnimation:

Called when the search mode will open.

- (void)searchContainerView:(nonnull RBSearchContainerView *)searchContainerView willOpenSearchWithAnimation:(BOOL)animated

Parameters

searchContainerView

The RBSearchContainerView object.

animated

Whether the transition is animated.

Declared In

RBSearchContainerView.h

– searchContainerView:didOpenSearchWithAnimation:

Called when the search mode did open.

- (void)searchContainerView:(nonnull RBSearchContainerView *)searchContainerView didOpenSearchWithAnimation:(BOOL)animated

Parameters

searchContainerView

The RBSearchContainerView object.

animated

Whether the transition is animated.

Declared In

RBSearchContainerView.h

– searchContainerView:willCloseSearchWithAnimation:

Called when the search mode will close.

- (void)searchContainerView:(nonnull RBSearchContainerView *)searchContainerView willCloseSearchWithAnimation:(BOOL)animated

Parameters

searchContainerView

The RBSearchContainerView object.

animated

Whether the transition is animated.

Declared In

RBSearchContainerView.h

– searchContainerView:didCloseSearchWithAnimation:

Called when the search mode did close.

- (void)searchContainerView:(nonnull RBSearchContainerView *)searchContainerView didCloseSearchWithAnimation:(BOOL)animated

Parameters

searchContainerView

The RBSearchContainerView object.

animated

Whether the transition is animated.

Declared In

RBSearchContainerView.h