本文整理汇总了Java中android.app.assist.AssistContent类的典型用法代码示例。如果您正苦于以下问题:Java AssistContent类的具体用法?Java AssistContent怎么用?Java AssistContent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AssistContent类属于android.app.assist包,在下文中一共展示了AssistContent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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,"");
}
}
示例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()));
}
}
示例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()));
}
}
示例4: onProvideAssistContent
import android.app.assist.AssistContent; //导入依赖的package包/类
void onProvideAssistContent(final CallVoid1<AssistContent> superCall,
final AssistContent outContent) {
synchronized (mSuperListeners) {
mSuperListeners.push(superCall);
onProvideAssistContent(outContent);
}
}
示例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);
}
示例6: onHandleAssist
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
super.onHandleAssist(data, structure, content);
}
示例7: onHandleAssist
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) {
}
示例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));
}
示例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));
}
示例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));
}
示例11: onProvideAssistContent
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(final AssistContent outContent) {
super.onProvideAssistContent(outContent);
}
示例12: onProvideAssistContent
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(final AssistContent outContent) {
delegate.onProvideAssistContent(outContent);
}
示例13: super_onProvideAssistContent
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void super_onProvideAssistContent(final AssistContent outContent) {
super.onProvideAssistContent(outContent);
}
示例14: onProvideAssistContent
import android.app.assist.AssistContent; //导入依赖的package包/类
@Override
public void onProvideAssistContent(AssistContent outContent) {
outContent.setWebUri(Uri.parse("http://whatdidtrumpdotoday.com/"));
}
示例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) {
}