java.lang.Object |
↳ |
com.google.android.gms.appindexing.Thing.Builder |
Known Direct Subclasses
|
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
Sets a property of the content.
Parameters |
key |
String :
The schema.org property. Must not be null. |
value |
Thing :
The value of the schema.org property represented as a Thing . If null,
the value will be ignored.
|
Sets properties of the content.
Parameters |
key |
String :
The schema.org property. Must not be null. |
values |
Thing :
The array of values represented as a Thing . If null, the values will be
ignored.
|
public
Thing.Builder
put
(String key, String value)
Sets a property of the content.
Parameters |
key |
String :
The schema.org property. Must not be null. |
value |
String :
The value of the schema.org property. If null, the value will be ignored.
|
public
Thing.Builder
put
(String key, String[] values)
Sets a property of the content.
Parameters |
key |
String :
The schema.org property. Must not be null. |
values |
String :
The array of string values. If null, the values will be ignored.
|
public
Thing.Builder
put
(String key, boolean value)
Sets a property of the content.
Parameters |
key |
String :
The schema.org property. Must not be null. |
value |
boolean :
The value of the schema.org property.
|
public
Thing.Builder
setDescription
(String description)
Sets the optional description of the content.
Parameters |
description |
String :
The description of the content.
|
Sets the optional web URL of the content.
Parameters |
id |
String :
The equivalent web url for the content.
|
public
Thing.Builder
setName
(String name)
Sets the name of the content.
Parameters |
name |
String :
The name of the content, must not be null. For more information, visit these guidelines for
providing a descriptive name.
|
public
Thing.Builder
setType
(String type)
Sets the schema.org type of the content.
Parameters |
type |
String :
The schema.org type of the content.
|
Sets the URL of the content in the app.
Parameters |
url |
Uri :
The app URI of the content, must not be null. The URI must either be an HTTP(S)
URL, or use the App
Indexing format. In either case, the app calling this method needs to handle
corresponding incoming Intents and take users to that content.
|