本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}