• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AssistContent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中android.app.assist.AssistContent的典型用法代码示例。如果您正苦于以下问题:Java AssistContent类的具体用法?Java AssistContent怎么用?Java AssistContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AssistContent类属于android.app.assist包,在下文中一共展示了AssistContent类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onHandleAssist

import android.app.assist.AssistContent; //导入依赖的package包/类
@TargetApi(Build.VERSION_CODES.M)
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
    super.onHandleAssist(data, structure, content);
    ComponentName componentName=structure.getActivityComponent();
    if (componentName.getPackageName().equals(HIDE_FLOAT_VIEW_PACKAGE_NAME)){
        tipViewController.hide();
    }else {
        tipViewController.show(1,"");
    }

}
 
开发者ID:l465659833,项目名称:RecentTask,代码行数:13,代码来源:BBVoiceInteractionSession.java


示例2: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:13,代码来源:ChromeActivity.java


示例3: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
public void onProvideAssistContent(AssistContent outContent) {
    if (getAssistStatusHandler() == null || !getAssistStatusHandler().isAssistSupported()) {
        // No information is provided in incognito mode.
        return;
    }
    Tab tab = getActivityTab();
    if (tab != null && !isInOverviewMode()) {
        outContent.setWebUri(Uri.parse(tab.getUrl()));
    }
}
 
开发者ID:Smalinuxer,项目名称:Vafrinn,代码行数:11,代码来源:ChromeActivity.java


示例4: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
void onProvideAssistContent(final CallVoid1<AssistContent> superCall,
        final AssistContent outContent) {
    synchronized (mSuperListeners) {
        mSuperListeners.push(superCall);
        onProvideAssistContent(outContent);
    }
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:8,代码来源:ActivityPlugin.java


示例5: onHandleAssistSecondary

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onHandleAssistSecondary(Bundle data, AssistStructure structure, AssistContent content, int index, int count) {
    super.onHandleAssistSecondary(data, structure, content, index, count);
}
 
开发者ID:l465659833,项目名称:RecentTask,代码行数:5,代码来源:BBVoiceInteractionSession.java


示例6: onHandleAssist

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
    super.onHandleAssist(data, structure, content);
}
 
开发者ID:l465659833,项目名称:Bigbang,代码行数:5,代码来源:BBVoiceInteractionSession.java


示例7: onHandleAssist

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
}
 
开发者ID:brandall76,项目名称:Saiy-PS,代码行数:4,代码来源:SaiyInteractionSession.java


示例8: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
@TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
 
开发者ID:goodev,项目名称:materialup,代码行数:6,代码来源:PostActivity.java


示例9: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(story.url));
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:5,代码来源:DesignerNewsStory.java


示例10: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override @TargetApi(Build.VERSION_CODES.M)
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse(shot.url));
}
 
开发者ID:liulinbo,项目名称:Amumu,代码行数:5,代码来源:DribbbleShot.java


示例11: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(final AssistContent outContent) {
    super.onProvideAssistContent(outContent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:BlueprintActivity.java


示例12: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(final AssistContent outContent) {
    delegate.onProvideAssistContent(outContent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:CompositeActivity.java


示例13: super_onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void super_onProvideAssistContent(final AssistContent outContent) {
    super.onProvideAssistContent(outContent);
}
 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:5,代码来源:CompositeActivity.java


示例14: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(AssistContent outContent) {
    outContent.setWebUri(Uri.parse("http://whatdidtrumpdotoday.com/"));
}
 
开发者ID:ToxicBakery,项目名称:MarshmallowDemo,代码行数:5,代码来源:ActivityMain.java


示例15: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
/**
 * This is called when the user is requesting an assist, to provide references
 * to content related to the current activity.  Before being called, the
 * {@code outContent} Intent is filled with the base Intent of the activity (the Intent
 * returned by {@link #getIntent()}).  The Intent's extras are stripped of any types
 * that are not valid for {@link PersistableBundle} or non-framework Parcelables, and
 * the flags {@link Intent#FLAG_GRANT_WRITE_URI_PERMISSION} and
 * {@link Intent#FLAG_GRANT_PERSISTABLE_URI_PERMISSION} are cleared from the Intent.
 *
 * <p>Custom implementation may adjust the content intent to better reflect the top-level
 * context of the activity, and fill in its ClipData with additional content of
 * interest that the user is currently viewing.  For example, an image gallery application
 * that has launched in to an activity allowing the user to swipe through pictures should
 * modify the intent to reference the current image they are looking it; such an
 * application when showing a list of pictures should add a ClipData that has
 * references to all of the pictures currently visible on screen.</p>
 *
 * @param outContent The assist content to return.
 */
public void onProvideAssistContent(AssistContent outContent) {
}
 
开发者ID:JessYanCoding,项目名称:ProgressManager,代码行数:22,代码来源:a.java


示例16: onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
void onProvideAssistContent(final AssistContent outContent); 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:2,代码来源:ICompositeActivity.java


示例17: super_onProvideAssistContent

import android.app.assist.AssistContent; //导入依赖的package包/类
void super_onProvideAssistContent(final AssistContent outContent); 
开发者ID:passsy,项目名称:CompositeAndroid,代码行数:2,代码来源:ICompositeActivity.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java OFSwitchConfig类代码示例发布时间:2022-05-21
下一篇:
Java ClickEvent类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap