SearchViewCompat.OnQueryTextListenerCompat
public
static
abstract
class
SearchViewCompat.OnQueryTextListenerCompat
extends Object
java.lang.Object
|
↳ |
android.support.v4.widget.SearchViewCompat.OnQueryTextListenerCompat
|
Callbacks for changes to the query text.
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long millis, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long millis)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Public constructors
SearchViewCompat.OnQueryTextListenerCompat
SearchViewCompat.OnQueryTextListenerCompat ()
Public methods
onQueryTextChange
boolean onQueryTextChange (String newText)
Called when the query text is changed by the user.
Parameters |
newText |
String :
the new content of the query text field. |
Returns |
boolean |
false if the SearchView should perform the default action of showing any
suggestions if available, true if the action was handled by the listener.
|
onQueryTextSubmit
boolean onQueryTextSubmit (String query)
Called when the user submits the query. This could be due to a key press on the
keyboard or due to pressing a submit button.
The listener can override the standard behavior by returning true
to indicate that it has handled the submit request. Otherwise return false to
let the SearchView handle the submission by launching any associated intent.
Parameters |
query |
String :
the query text that is to be submitted |
Returns |
boolean |
true if the query has been handled by the listener, false to let the
SearchView perform the default action.
|