本文整理汇总了Java中android.view.SearchEvent类的典型用法代码示例。如果您正苦于以下问题:Java SearchEvent类的具体用法?Java SearchEvent怎么用?Java SearchEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SearchEvent类属于android.view包,在下文中一共展示了SearchEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
boolean onSearchRequested(final CallFun1<Boolean, SearchEvent> superCall,
@Nullable final SearchEvent searchEvent) {
synchronized (mSuperListeners) {
mSuperListeners.push(superCall);
return onSearchRequested(searchEvent);
}
}
示例2: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
return mCallback.onSearchRequested(searchEvent);
}
示例3: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
return mLocalCallback.onSearchRequested(searchEvent);
}
示例4: onActivitySearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onActivitySearchRequested(T activity, SearchEvent searchEvent) {
return false;
}
示例5: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchEvent) {
return this.mWrapped.onSearchRequested(searchEvent);
}
示例6: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchEvent) {
return this.f610d.onSearchRequested(searchEvent);
}
示例7: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
return mWrapped.onSearchRequested(searchEvent);
}
示例8: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) {
return super.onSearchRequested(searchEvent);
}
示例9: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) {
return delegate.onSearchRequested(searchEvent);
}
示例10: super_onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean super_onSearchRequested(@Nullable final SearchEvent searchEvent) {
return super.onSearchRequested(searchEvent);
}
示例11: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent paramSearchEvent)
{
return this.mWrapped.onSearchRequested(paramSearchEvent);
}
示例12: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
@TargetApi(Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
return wrappedCallback != null && wrappedCallback.onSearchRequested(searchEvent);
}
示例13: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchevent)
{
return mWrapped.onSearchRequested(searchevent);
}
示例14: onSearchRequested
import android.view.SearchEvent; //导入依赖的package包/类
/**
* 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;
}
示例15: getSearchEvent
import android.view.SearchEvent; //导入依赖的package包/类
/**
* 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;
}