RBSearchBarViewDelegate Protocol Reference

Conforms to NSObject
Declared in RBSearchBarView.h

Overview

A delegate to receive search and state change events for an RBSearchBarView object.

– searchBarView:didRequestSearchWithQuery: required method

Called when the search bar view has requested that a search is performed.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView didRequestSearchWithQuery:(nonnull NSString *)queryString

Parameters

searchBarView

The RBSearchBarView object.

queryString

The query string to perform a search with.

Discussion

Called when the search bar view has requested that a search is performed.

Declared In

RBSearchBarView.h

– searchBarViewShouldActivateOnQueryEdit:

Whether or not the search bar view should activate after the query string field has been tapped.

- (BOOL)searchBarViewShouldActivateOnQueryEdit:(nonnull RBSearchBarView *)searchBarView

Parameters

searchBarView

The RBSearchBarView object.

Return Value

Whether or not to allow activation.

Discussion

Whether or not the search bar view should activate after the query string field has been tapped.

Declared In

RBSearchBarView.h

– searchBarViewShouldDeactivateOnCancelTapped:

Whether or not the search bar view should deactivate after the cancel button has been tapped.

- (BOOL)searchBarViewShouldDeactivateOnCancelTapped:(nonnull RBSearchBarView *)searchBarView

Parameters

searchBarView

The RBSearchBarView object.

Return Value

Whether or not to allow deactivation.

Discussion

Whether or not the search bar view should deactivate after the cancel button has been tapped.

Declared In

RBSearchBarView.h

– searchBarView:queryDidChangeTo:

Called when the query string was updated.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView queryDidChangeTo:(nonnull NSString *)queryString

Parameters

searchBarView

The RBSearchBarView object.

queryString

The new query string.

Discussion

Called when the query string was updated.

Declared In

RBSearchBarView.h

– searchBarViewDidClearQuery:

Called when the query string is cleared in a search bar view.

- (void)searchBarViewDidClearQuery:(nonnull RBSearchBarView *)searchBarView

Parameters

searchBarView

The RBSearchBarView object.

Discussion

Called when the query string is cleared in a search bar view.

Declared In

RBSearchBarView.h

– searchBarView:willActivateWithAnimation:

Called when the search bar view will be activated.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView willActivateWithAnimation:(BOOL)animated

Parameters

searchBarView

The RBSearchBarView object.

animated

Whether or not the transition is animated.

Discussion

Called when the search bar view will be activated.

Declared In

RBSearchBarView.h

– searchBarView:didActivateWithAnimation:

Called when the search bar view was activated.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView didActivateWithAnimation:(BOOL)animated

Parameters

searchBarView

The RBSearchBarView object.

animated

Whether or not the transition is animated.

Discussion

Called when the search bar view was activated.

Declared In

RBSearchBarView.h

– searchBarView:willDeactivateWithAnimation:

Called when the search bar view will be deactivated.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView willDeactivateWithAnimation:(BOOL)animated

Parameters

searchBarView

The RBSearchBarView object.

animated

Whether or not the transition is animated.

Discussion

Called when the search bar view will be deactivated.

Declared In

RBSearchBarView.h

– searchBarView:didDeactivateWithAnimation:

Called when the search bar view was deactivated.

- (void)searchBarView:(nonnull RBSearchBarView *)searchBarView didDeactivateWithAnimation:(BOOL)animated

Parameters

searchBarView

The RBSearchBarView object.

animated

Whether or not the transition is animated.

Discussion

Called when the search bar view was deactivated.

Declared In

RBSearchBarView.h