@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,""); } }
@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())); } }
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())); } }
void onProvideAssistContent(final CallVoid1<AssistContent> superCall, final AssistContent outContent) { synchronized (mSuperListeners) { mSuperListeners.push(superCall); onProvideAssistContent(outContent); } }
@Override public void onHandleAssistSecondary(Bundle data, AssistStructure structure, AssistContent content, int index, int count) { super.onHandleAssistSecondary(data, structure, content, index, count); }
@Override public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) { super.onHandleAssist(data, structure, content); }
@Override public void onHandleAssist(Bundle data, AssistStructure structure, AssistContent content) { }
@Override @TargetApi(Build.VERSION_CODES.M) public void onProvideAssistContent(AssistContent outContent) { outContent.setWebUri(Uri.parse(shot.url)); }
@Override @TargetApi(Build.VERSION_CODES.M) public void onProvideAssistContent(AssistContent outContent) { outContent.setWebUri(Uri.parse(story.url)); }
@Override public void onProvideAssistContent(final AssistContent outContent) { super.onProvideAssistContent(outContent); }
@Override public void onProvideAssistContent(final AssistContent outContent) { delegate.onProvideAssistContent(outContent); }
@Override public void super_onProvideAssistContent(final AssistContent outContent) { super.onProvideAssistContent(outContent); }
public void onProvideAssistContent(final AssistContent outContent) { verifyMethodCalledFromDelegate("onProvideAssistContent(AssistContent)"); ((CallVoid1<AssistContent>) mSuperListeners.pop()).call(outContent); }
@Override public void onProvideAssistContent(AssistContent outContent) { outContent.setWebUri(Uri.parse("http://whatdidtrumpdotoday.com/")); }
/** * 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) { }
void onProvideAssistContent(final AssistContent outContent);
void super_onProvideAssistContent(final AssistContent outContent);