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


Java Thing类代码示例

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


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

示例1: getAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
public Action getAction() {
	urlForAction = BASE_URL;
	titleForAction = "Shortcuts";
	descriptionForAction = "Shortcuts Will Create Soon";

	Thing object = new Thing.Builder()
			.setName(titleForAction)
			.setDescription(descriptionForAction)
			.setUrl(urlForAction)
			.build();

	return new Action.Builder(Action.TYPE_VIEW)
			.setObject(object)
			.setActionStatus(Action.STATUS_TYPE_COMPLETED)
			.build();
}
 
开发者ID:GeeksEmpireNet,项目名称:Shortcuts,代码行数:17,代码来源:RecoveryShortcuts.java

示例2: getActionForTitle

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
private Action getActionForTitle(String title) {
    Uri sessionUri = ((SessionDetailActivity) getActivity()).getSessionUri();
    String uuid = sessionUri.toString().substring(sessionUri.toString().lastIndexOf("/") + 1);
    Uri uri = new Uri.Builder()
            .scheme(Config.HTTPS)
            .authority(BuildConfig.PRODUCTION_WEBSITE_HOST_NAME)
            .path(BuildConfig.WEB_URL_SCHEDULE_PATH)
            .appendQueryParameter(Config.SESSION_ID_URL_QUERY_KEY, uuid)
            .build();
    // Build a schema.org Thing that represents the session details currently displayed. Its
    // name is the session's title, and its URL is a deep link back to this
    // SessionDetailFragment.
    Thing session = new Thing.Builder()
            .setName(title)
            .setUrl(uri)
            .build();
    // Build a schema.org Action that represents a user viewing this session screen. This Action
    // is then ready to be passed to the App Indexing API. Read more about the API here:
    // https://developers.google.com/app-indexing/introduction#android.
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(session)
            .build();
}
 
开发者ID:google,项目名称:iosched,代码行数:24,代码来源:SessionDetailFragment.java

示例3: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Main Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:khalibartan,项目名称:Crammer-HITN17,代码行数:16,代码来源:MainActivity.java

示例4: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Game Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:mattdelsordo,项目名称:420Game,代码行数:16,代码来源:GameActivity.java

示例5: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("CriteriaMidtermInput Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:inteliedoit,项目名称:thesis-project,代码行数:16,代码来源:CriteriaMidtermInputActivity.java

示例6: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Signup Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:doljko,项目名称:ToDay,代码行数:16,代码来源:SignupActivity.java

示例7: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Chat Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:brijrajsingh,项目名称:DirectLineAndroidSample,代码行数:16,代码来源:ChatActivity.java

示例8: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Main Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://shobhitpandey.in"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:Shobhit-pandey,项目名称:CollegeDoc,代码行数:16,代码来源:MainActivity.java

示例9: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
public Action getIndexApiAction()
{
    Thing object = new Thing.Builder()
            .setName("Main Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:MihaiBojescu,项目名称:Linux-notifier-Android,代码行数:13,代码来源:MainActivity.java

示例10: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("DeviceList Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:Welloculus,项目名称:MobileAppForPatient,代码行数:16,代码来源:DeviceListActivity.java

示例11: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Menu Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:CodeOfCinders,项目名称:conquest-client,代码行数:16,代码来源:MenuActivity.java

示例12: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("SkypeCall Page")
            // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:OfficeDev,项目名称:skype-android-app-sdk-samples,代码行数:17,代码来源:SkypeCall.java

示例13: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Menu Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:obenm,项目名称:MicroStore_RoboFood,代码行数:12,代码来源:Payment.java

示例14: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("RiderSkillTreeActivity Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:Mfrenchy77,项目名称:HorseandRidersCompanion,代码行数:16,代码来源:BaseSkillTreeActivity.java

示例15: getIndexApiAction

import com.google.android.gms.appindexing.Thing; //导入依赖的package包/类
/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */
public Action getIndexApiAction() {
    Thing object = new Thing.Builder()
            .setName("Login Page") // TODO: Define a title for the content shown.
            // TODO: Make sure this auto-generated URL is correct.
            .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]"))
            .build();
    return new Action.Builder(Action.TYPE_VIEW)
            .setObject(object)
            .setActionStatus(Action.STATUS_TYPE_COMPLETED)
            .build();
}
 
开发者ID:clementf2b,项目名称:FaceT,代码行数:16,代码来源:LoginActivity.java


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