android.view.SearchEvent Java Examples
The following examples show how to use
android.view.SearchEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InstrActivityProxy1.java From Neptune with Apache License 2.0 | 5 votes |
@Override public boolean onSearchRequested(SearchEvent searchEvent) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (getController() != null) { return getController().getPlugin().onSearchRequested(searchEvent); } return super.onSearchRequested(searchEvent); } else { return false; } }
Example #2
Source File: Dialog.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** * This hook is called when the user signals the desire to start a search. */ @Override public boolean onSearchRequested(@NonNull SearchEvent searchEvent) { mSearchEvent = searchEvent; return onSearchRequested(); }
Example #3
Source File: DreamService.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public boolean onSearchRequested(SearchEvent event) { return onSearchRequested(); }
Example #4
Source File: MonitorActivityLifecycleCallbacks.java From BehaviorCollect with GNU General Public License v3.0 | 4 votes |
@Override @TargetApi(23) public boolean onSearchRequested(SearchEvent searchEvent) { return this.callback.onSearchRequested(searchEvent); }
Example #5
Source File: WindowCallbackWorker.java From GPT with Apache License 2.0 | 4 votes |
@TargetApi(Build.VERSION_CODES.M) @Override public boolean onSearchRequested(SearchEvent searchEvent) { return false; }
Example #6
Source File: MyWindowCallback.java From MaterialChipsInput with Apache License 2.0 | 4 votes |
@RequiresApi(api = Build.VERSION_CODES.M) @Override public boolean onSearchRequested(SearchEvent searchEvent) { return mLocalCallback.onSearchRequested(searchEvent); }
Example #7
Source File: Dialog.java From android_9.0.0_r45 with Apache License 2.0 | 2 votes |
/** * 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 @Nullable SearchEvent getSearchEvent() { return mSearchEvent; }
Example #8
Source File: BlueprintActivity.java From CompositeAndroid with Apache License 2.0 | 2 votes |
/** * 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} or * {@link Configuration#UI_MODE_TYPE_WATCH}, the default implementation changes to simply * return false and you must supply your own custom implementation if you want to support * search. * * @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 SearchManager */ @Override public boolean onSearchRequested(@Nullable SearchEvent searchEvent) { return super.onSearchRequested(searchEvent); }
Example #9
Source File: ICompositeActivity.java From CompositeAndroid with Apache License 2.0 | votes |
boolean onSearchRequested(@Nullable SearchEvent searchEvent);
Example #10
Source File: ICompositeActivity.java From CompositeAndroid with Apache License 2.0 | votes |
boolean super_onSearchRequested(@Nullable SearchEvent searchEvent);