com.google.firebase.appindexing.Action Java Examples

The following examples show how to use com.google.firebase.appindexing.Action. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivity.java    From snippets-android with Apache License 2.0 5 votes vote down vote up
public Action getNoteCommentAction() {
    return new Action.Builder(Action.Builder.COMMENT_ACTION)
            .setObject(mNote.getTitle(), mNote.getNoteUrl())
            // Keep action data for personal connulltent on the device
            .setMetadata(new Action.Metadata.Builder().setUpload(false))
            .build();
}
 
Example #2
Source File: MessageIndexer.java    From eternity with Apache License 2.0 4 votes vote down vote up
private Action getAction(Message message) {
  return new Action.Builder(Action.Builder.VIEW_ACTION)
      .setObject(message.author().name(), getUrl(message.uuid()))
      .setMetadata(new Action.Metadata.Builder().setUpload(false))
      .build();
}
 
Example #3
Source File: MainActivity.java    From snippets-android with Apache License 2.0 4 votes vote down vote up
public Action getRecipeViewAction() {
    // This is just to make some things compile.
    return null;
}
 
Example #4
Source File: RecipeActivity.java    From app-indexing with Apache License 2.0 4 votes vote down vote up
private Action getNoteCommentAction() {
    return new Action.Builder(Action.Builder.COMMENT_ACTION)
            .setObject(mRecipe.getTitle() + " Note", mRecipe.getNoteUrl())
            .setMetadata(new Action.Metadata.Builder().setUpload(false))
            .build();
}
 
Example #5
Source File: RecipeActivity.java    From app-indexing with Apache License 2.0 4 votes vote down vote up
private Action getRecipeViewAction() {
    return Actions.newView(mRecipe.getTitle(), mRecipe.getRecipeUrl());
}
 
Example #6
Source File: RecipeActivity.java    From search-samples with Apache License 2.0 4 votes vote down vote up
private Action getNoteCommentAction() {
    return new Action.Builder(Action.Builder.COMMENT_ACTION)
            .setObject(mRecipe.getTitle() + " Note", mRecipe.getNoteUrl())
            .setMetadata(new Action.Metadata.Builder().setUpload(false))
            .build();
}
 
Example #7
Source File: RecipeActivity.java    From search-samples with Apache License 2.0 4 votes vote down vote up
private Action getRecipeViewAction() {
    return Actions.newView(mRecipe.getTitle(), mRecipe.getRecipeUrl());
}