当前位置: 首页>>代码示例>>Java>>正文


Java Action类代码示例

本文整理汇总了Java中com.google.firebase.appindexing.Action的典型用法代码示例。如果您正苦于以下问题:Java Action类的具体用法?Java Action怎么用?Java Action使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Action类属于com.google.firebase.appindexing包,在下文中一共展示了Action类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIndexApiAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
public Action getIndexApiAction(@NonNull String text) {
    return new Action.Builder(Action.Builder.VIEW_ACTION)
            .setObject(text, Uri.parse(C.URI.APP).buildUpon().appendPath(text).build().toString())
            // Keep action data for personal content on the device
            //.setMetadata(new Action.Metadata.Builder().setUpload(false))
            .build();
}
 
开发者ID:alvinhkh,项目名称:buseta,代码行数:8,代码来源:SearchActivity.java

示例2: getMessageViewAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
private Action getMessageViewAction(FriendlyMessage friendlyMessage) {
    return new Action.Builder(Action.Builder.VIEW_ACTION)
            .setObject(friendlyMessage.getName(), MESSAGE_URL.concat(friendlyMessage.getId()))
            .setMetadata(new Action.Metadata.Builder().setUpload(false))
            .build();
}
 
开发者ID:firebase,项目名称:friendlychat-android,代码行数:7,代码来源:MainActivity.java

示例3: getAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
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();
}
 
开发者ID:ashdavies,项目名称:eternity,代码行数:7,代码来源:MessageIndexer.java

示例4: getNoteCommentAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
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();
}
 
开发者ID:googlecodelabs,项目名称:app-indexing,代码行数:7,代码来源:RecipeActivity.java

示例5: getRecipeViewAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
private Action getRecipeViewAction() {
    return Actions.newView(mRecipe.getTitle(), mRecipe.getRecipeUrl());
}
 
开发者ID:googlecodelabs,项目名称:app-indexing,代码行数:4,代码来源:RecipeActivity.java

示例6: getAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
public Action getAction() {
    return Actions.newView(titleString, urlInWeb.toString());
}
 
开发者ID:StepicOrg,项目名称:stepik-android,代码行数:4,代码来源:CourseDetailFragment.java

示例7: getAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
public Action getAction(@NotNull Step step) {
    return Actions.newView(getTitle(step), getUrlInWeb(step));
}
 
开发者ID:StepicOrg,项目名称:stepik-android,代码行数:4,代码来源:LessonFragment.java

示例8: getAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
public Action getAction() {
    return Actions.newView(title, urlInWeb.toString());
}
 
开发者ID:StepicOrg,项目名称:stepik-android,代码行数:4,代码来源:SectionsFragment.java

示例9: getIndexApiAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    return Actions.newView("Subjects", "http://[ENTER-YOUR-URL-HERE]");
}
 
开发者ID:Shobhit-pandey,项目名称:CollegeDoc,代码行数:8,代码来源:Subjects.java

示例10: getIndexApiAction

import com.google.firebase.appindexing.Action; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    return Actions.newView("Kmb", "http://[ENTER-YOUR-URL-HERE]");
}
 
开发者ID:alvinhkh,项目名称:buseta,代码行数:8,代码来源:KmbActivity.java


注:本文中的com.google.firebase.appindexing.Action类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。