当前位置: 首页>>代码示例>>Java>>正文


Java SearchEvent类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:8,代码来源:ActivityPlugin.java

示例2: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {

        return mCallback.onSearchRequested(searchEvent);
}
 
开发者ID:316boss,项目名称:TopNotification,代码行数:7,代码来源:AbstractWindowCallback.java

示例3: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
    return mLocalCallback.onSearchRequested(searchEvent);
}
 
开发者ID:pchmn,项目名称:MaterialChipsInput,代码行数:6,代码来源:MyWindowCallback.java

示例4: onActivitySearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onActivitySearchRequested(T activity, SearchEvent searchEvent) {
    return false;
}
 
开发者ID:worldiety,项目名称:homunculus,代码行数:5,代码来源:ActivityEventDispatcher.java

示例5: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchEvent) {
    return this.mWrapped.onSearchRequested(searchEvent);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:WindowCallbackWrapper.java

示例6: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchEvent) {
    return this.f610d.onSearchRequested(searchEvent);
}
 
开发者ID:Qwaz,项目名称:solved-hacking-problem,代码行数:4,代码来源:C0205n.java

示例7: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
    return mWrapped.onSearchRequested(searchEvent);
}
 
开发者ID:GigigoGreenLabs,项目名称:permissionsModule,代码行数:5,代码来源:WindowCallbackWrapper.java

示例8: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) {
    return super.onSearchRequested(searchEvent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:BlueprintActivity.java

示例9: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean onSearchRequested(@Nullable final SearchEvent searchEvent) {
    return delegate.onSearchRequested(searchEvent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:CompositeActivity.java

示例10: super_onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@Override
public boolean super_onSearchRequested(@Nullable final SearchEvent searchEvent) {
    return super.onSearchRequested(searchEvent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:CompositeActivity.java

示例11: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent paramSearchEvent)
{
  return this.mWrapped.onSearchRequested(paramSearchEvent);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:WindowCallbackWrapper.java

示例12: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
@TargetApi(Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
    return wrappedCallback != null && wrappedCallback.onSearchRequested(searchEvent);
}
 
开发者ID:aimbrain,项目名称:aimbrain-android-sdk,代码行数:6,代码来源:AMBNWindowCallback.java

示例13: onSearchRequested

import android.view.SearchEvent; //导入依赖的package包/类
public boolean onSearchRequested(SearchEvent searchevent)
{
    return mWrapped.onSearchRequested(searchevent);
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:5,代码来源:WindowCallbackWrapper.java

示例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;
}
 
开发者ID:JessYanCoding,项目名称:ProgressManager,代码行数:30,代码来源:a.java

示例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;
}
 
开发者ID:JessYanCoding,项目名称:ProgressManager,代码行数:11,代码来源:a.java


注:本文中的android.view.SearchEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。