boolean onSearchRequested(final CallFun1<Boolean, SearchEvent> superCall, @Nullable final SearchEvent searchEvent) { synchronized (mSuperListeners) { mSuperListeners.push(superCall); return onSearchRequested(searchEvent); } }
@RequiresApi(api = Build.VERSION_CODES.M) @Override public boolean onSearchRequested(SearchEvent searchEvent) { return mCallback.onSearchRequested(searchEvent); }
@RequiresApi(api = Build.VERSION_CODES.M) @Override public boolean onSearchRequested(SearchEvent searchEvent) { return mLocalCallback.onSearchRequested(searchEvent); }
@Override public boolean onActivitySearchRequested(T activity, SearchEvent searchEvent) { return false; }
public boolean onSearchRequested(SearchEvent searchEvent) { return this.mWrapped.onSearchRequested(searchEvent); }
public boolean onSearchRequested(SearchEvent searchEvent) { return this.f610d.onSearchRequested(searchEvent); }
@Override public boolean onSearchRequested(SearchEvent searchEvent) { return mWrapped.onSearchRequested(searchEvent); }
@Override public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) { return super.onSearchRequested(searchEvent); }
@Override public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) { return delegate.onSearchRequested(searchEvent); }
@Override public boolean super_onSearchRequested(@Nullable final SearchEvent searchEvent) { return super.onSearchRequested(searchEvent); }
public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) { verifyMethodCalledFromDelegate("onSearchRequested(SearchEvent)"); return ((CallFun1<Boolean, SearchEvent>) mSuperListeners.pop()).call(searchEvent); }
public boolean onSearchRequested(SearchEvent paramSearchEvent) { return this.mWrapped.onSearchRequested(paramSearchEvent); }
@TargetApi(Build.VERSION_CODES.M) @Override public boolean onSearchRequested(SearchEvent searchEvent) { return wrappedCallback != null && wrappedCallback.onSearchRequested(searchEvent); }
public boolean onSearchRequested(SearchEvent searchevent) { return mWrapped.onSearchRequested(searchevent); }
/** * This hook is called when the user signals the desire to start a search. * * <p>You can use this function as a simple way to launch the search UI, in response to a * menu item, search button, or other widgets within your activity. Unless overidden, * calling this function is the same as calling * {@link #startSearch startSearch(null, false, null, false)}, which launches * search for the current activity as specified in its manifest, see {@link SearchManager}. * * <p>You can override this function to force global search, e.g. in response to a dedicated * search key, or to block search entirely (by simply returning false). * * <p>Note: when running in a {@link Configuration#UI_MODE_TYPE_TELEVISION}, the default * implementation changes to simply return false and you must supply your own custom * implementation if you want to support search.</p> * * @param searchEvent The {@link SearchEvent} that signaled this search. * @return Returns {@code true} if search launched, and {@code false} if the activity does * not respond to search. The default implementation always returns {@code true}, except * when in {@link Configuration#UI_MODE_TYPE_TELEVISION} mode where it returns false. * * @see android.app.SearchManager */ public boolean onSearchRequested(@Nullable SearchEvent searchEvent) { mSearchEvent = searchEvent; boolean result = onSearchRequested(); mSearchEvent = null; return result; }
/** * During the onSearchRequested() callbacks, this function will return the * {@link SearchEvent} that triggered the callback, if it exists. * * @return SearchEvent The SearchEvent that triggered the {@link * #onSearchRequested} callback. */ public final SearchEvent getSearchEvent() { return mSearchEvent; }