Szerkesztés

Megosztás a következőn keresztül:


UISearchBarDelegate_Extensions Class

Definition

Extension methods to the IUISearchBarDelegate interface to support all the methods from the UISearchBarDelegate protocol.

public static class UISearchBarDelegate_Extensions
type UISearchBarDelegate_Extensions = class
Inheritance
UISearchBarDelegate_Extensions

Remarks

The extension methods for IUISearchBarDelegate allow developers to treat instances of the interface as having all the optional methods of the original UISearchBarDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

BookmarkButtonClicked(IUISearchBarDelegate, UISearchBar)

Indicates that the bookmark button was tapped.

CancelButtonClicked(IUISearchBarDelegate, UISearchBar)

Indicates that the cancel button was tapped.

ListButtonClicked(IUISearchBarDelegate, UISearchBar)

Indicates that the list button was tapped.

OnEditingStarted(IUISearchBarDelegate, UISearchBar)

Indicates that the user has begun editing the search text.

OnEditingStopped(IUISearchBarDelegate, UISearchBar)

Indicates that the user has stopped editing the text field.

SearchButtonClicked(IUISearchBarDelegate, UISearchBar)

Indicates that the search button was tapped.

SelectedScopeButtonIndexChanged(IUISearchBarDelegate, UISearchBar, nint)

Indicates that the user has changed the scope of the search.

ShouldBeginEditing(IUISearchBarDelegate, UISearchBar)

Whether editing of the search text should be allowed.

ShouldChangeTextInRange(IUISearchBarDelegate, UISearchBar, NSRange, String)

Whether the text in the specified range should be replaced with the specified text.

ShouldEndEditing(IUISearchBarDelegate, UISearchBar)

Whether the editing of the search text should end.

TextChanged(IUISearchBarDelegate, UISearchBar, String)

Indicates that the search text has changed.

Applies to