Code example for SearchableInfo

Methods: getSuggestAuthority

0
                (SearchManager) context.getSystemService(Context.SEARCH_SERVICE);
        return searchManager.getSuggestions(mSearchable, query);
    } 
 
    public boolean supportsSuggestions() { 
        return !TextUtils.isEmpty(mSearchable.getSuggestAuthority());
    } 
 
    public void close() { 
    } 
 
    public boolean supportsVoiceSearch() { 
        return getName().equals(SearchEngine.GOOGLE);
    } 
 
    @Override 
    public String toString() {
        return "ActivitySearchEngine{" + mSearchable + "}";
    } 
 
    @Override