app/src/main/java/com/sap/cloud/mobile/fiori/demo/search/objectcell/SearchSuggestionProvider.java
@NonNull
    private static UriMatcher buildUriMatcher() {
        UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);
        // to get definitions...
        matcher.addURI(AUTHORITY, "objectcell", SEARCH_ADDRESS);
        matcher.addURI(AUTHORITY, "objectcell/#", GET_ADDRESS);
        // to get suggestions...
        matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY, SEARCH_SUGGEST);
        matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", SEARCH_SUGGEST);
        return matcher;
    }
/**
     * Builds up a UriMatcher for search suggestion and shortcut refresh queries.
     */
Builds up a UriMatcher for search suggestion and shortcut refresh queries.
Builds up a UriMatcher for search suggestion and shortcut refresh queries .
@NonNull
    private static UriMatcher buildUriMatcher() {
        UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);
        matcher.addURI(AUTHORITY, "objectcell", SEARCH_ADDRESS);
        matcher.addURI(AUTHORITY, "objectcell/#", GET_ADDRESS);
        matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY, SEARCH_SUGGEST);
        matcher.addURI(AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", SEARCH_SUGGEST);
        return matcher;
    }
@ NonNull private static UriMatcher buildUriMatcher ( ) { UriMatcher matcher = new UriMatcher ( UriMatcher . NO_MATCH ) ; matcher . addURI ( AUTHORITY , "objectcell" , SEARCH_ADDRESS ) ; matcher . addURI ( AUTHORITY , "objectcell/#" , GET_ADDRESS ) ; matcher . addURI ( AUTHORITY , SearchManager . SUGGEST_URI_PATH_QUERY , SEARCH_SUGGEST ) ; matcher . addURI ( AUTHORITY , SearchManager . SUGGEST_URI_PATH_QUERY + "/*" , SEARCH_SUGGEST ) ; return matcher ; }
Builds up a UriMatcher for search suggestion and shortcut refresh queries.
Builds up a UriMatcher for search suggestion and shortcut refresh queries .
// to get definitions... // to get suggestions...