java.lang.Object | |
↳ | com.google.android.gms.R.styleable |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AdsAttrs_adSize | The size of the ad. |
|||||||||
int | AdsAttrs_adUnitId | The ad unit ID. |
|||||||||
int | Corpus_contentProviderUri | The URI of the content provider that the index should crawl to get the data for this corpus. |
|||||||||
int | Corpus_id | The ID of the corpus. |
|||||||||
int | Corpus_trimmable | Indicates if documents from this corpus can be trimmed when the index reaches its quota. |
|||||||||
int | Corpus_version | The version of the corpus. |
|||||||||
int | GlobalSearchCorpus_enabled | Whether or not global search is enabled for this corpus. |
|||||||||
int | GlobalSearchSection_content | The content of this global search section. |
|||||||||
int | GlobalSearchSection_sectionId | The global search section ID for this mapping. |
|||||||||
int | GlobalSearch_defaultIntentAction | The default value for the global search section |
|||||||||
int | GlobalSearch_defaultIntentActivity | The default value for the global search section |
|||||||||
int | GlobalSearch_defaultIntentData | The default value for the global search section |
|||||||||
int | GlobalSearch_enabled | Whether or not global search is enabled for this app. |
|||||||||
int | GlobalSearch_label | A localized string to identify this apps data within the global search app. |
|||||||||
int | GlobalSearch_settingsDescription | A localized string to describe this apps data within the global search apps settings. |
|||||||||
int | MapAttrs_cameraBearing | This symbol is the offset where the |
|||||||||
int | MapAttrs_cameraTargetLat | This symbol is the offset where the |
|||||||||
int | MapAttrs_cameraTargetLng | This symbol is the offset where the |
|||||||||
int | MapAttrs_cameraTilt | This symbol is the offset where the |
|||||||||
int | MapAttrs_cameraZoom | This symbol is the offset where the |
|||||||||
int | MapAttrs_mapType | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiCompass | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiRotateGestures | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiScrollGestures | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiTiltGestures | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiZoomControls | This symbol is the offset where the |
|||||||||
int | MapAttrs_uiZoomGestures | This symbol is the offset where the |
|||||||||
int | MapAttrs_useViewLifecycle | This symbol is the offset where the |
|||||||||
int | MapAttrs_zOrderOnTop | This symbol is the offset where the |
|||||||||
int | SectionFeature_type | The type of this section. |
|||||||||
int | Section_format | The format of the section. |
|||||||||
int | Section_id | The ID of the section. |
|||||||||
int | Section_indexPrefixes | Indicates if this section should support prefix matching. |
|||||||||
int | Section_noIndex | Indicates if this section should not be indexed. |
|||||||||
int | Section_subsectionSeparator | Subsection separator. |
|||||||||
int | Section_weight | The weight of the section. |
|||||||||
int | Set_name | The name of this parameter. |
|||||||||
int | Set_value | The value of this parameter. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdsAttrs | Attributes that can be used with a AdsAttrs. | ||||||||||
AppDataSearch | Applications that index data using AppDataSearch must provide their corpus configuration
in an XML file, typically called appdatasearch.xml . |
||||||||||
Corpus | The Corpus element represents a corpus within AppDataSearch. |
||||||||||
GlobalSearch | The GlobalSearch element should be included if you want your apps data to appear
in the global search app. |
||||||||||
GlobalSearchCorpus | Each Corpus element should include a GlobalSearchCorpus element if the
corpus is to appear in the global search app. |
||||||||||
GlobalSearchSection | This element provides a mapping of sections from this corpus to a global search section. | ||||||||||
MapAttrs | Attributes that can be used with a MapAttrs. | ||||||||||
Section | The Section element represents a section within a corpus. |
||||||||||
SectionFeature | The SectionFeature element represents a feature of a section. |
||||||||||
Set | The Set element represents a parameter specified for a SectionFeature . |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The size of the ad. It must be one of BANNER, FULL_BANNER, LEADERBOARD, MEDIUM_RECTANGLE, SMART_BANNER, WIDE_SKYSCRAPER, or <width>x<height>.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The ad unit ID.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The URI of the content provider that the index should crawl to get the data for this corpus. Required. This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The ID of the corpus. Required. This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Indicates if documents from this corpus can be trimmed when the index reaches its quota.
Optional; defaults to true
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The version of the corpus. Optional; defaults to "0"
. This string must not change
between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Whether or not global search is enabled for this corpus. Optional; defaults to
true
. If set to false
, it will be treated as if the GlobalSearchCorpus
element did not exist.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The content of this global search section. This is a global search section template string. It should contain a reference to a string which can change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The global search section ID for this mapping.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
text1 | 0 | |
text2 | 1 | |
icon_uri | 2 | |
intent_action | 3 | |
intent_data | 4 | |
intent_data_id | 5 | |
intent_extra_data | 6 | |
large_icon_uri | 7 | |
intent_activity | 8 |
This is a private symbol.
The default value for the global search section default_intent_action
. Optional.
This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The default value for the global search section default_intent_aactivity
. Optional.
This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The default value for the global search section default_intent_data
. Optional.
This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Whether or not global search is enabled for this app. Optional; defaults to true
.
If set to false
, it will be treated as if the GlobalSearch
element did not
exist.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
A localized string to identify this apps data within the global search app. Required.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
A localized string to describe this apps data within the global search apps settings. Optional.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
This symbol is the offset where the cameraBearing
attribute's value can be found in the MapAttrs
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the cameraTargetLat
attribute's value can be found in the MapAttrs
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the cameraTargetLng
attribute's value can be found in the MapAttrs
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the cameraTilt
attribute's value can be found in the MapAttrs
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the cameraZoom
attribute's value can be found in the MapAttrs
array.
Must be a floating point value, such as "1.2
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiCompass
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiRotateGestures
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiScrollGestures
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiTiltGestures
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiZoomControls
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the uiZoomGestures
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the useViewLifecycle
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This symbol is the offset where the zOrderOnTop
attribute's value can be found in the MapAttrs
array.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
The type of this section. Required.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
match_global_nicknames | 1 | Enable global nickname matching on this section |
demote_common_words | 2 | Demote common words by a factor in this section |
This is a private symbol.
The format of the section. Optional; default to plain
.
Must be one of the following constant values.
Constant | Value | Description |
---|---|---|
plain | 0 | |
html | 1 | |
rfc822 | 2 |
This is a private symbol.
The ID of the section. Required. This string must not change between configurations.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Indicates if this section should support prefix matching. Optional; defaults to
false
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Indicates if this section should not be indexed. Optional; defaults to false
.
Must be a boolean value, either "true
" or "false
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Subsection separator. Optional. If not provided, the section is not split into subsections.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The weight of the section. Optional; defaults to 1.
Must be an integer value, such as "100
".
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The name of this parameter. Required.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
The value of this parameter. Optional.
Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.
This may also be a reference to a resource (in the form
"@[package:]type:name
") or
theme attribute (in the form
"?[package:][type:]name
")
containing a value of this type.
This is a private symbol.
Attributes that can be used with a AdsAttrs.
Includes the following attributes:
Attribute | Description |
---|---|
| The size of the ad. |
| The ad unit ID. |
Applications that index data using AppDataSearch must provide their corpus configuration
in an XML file, typically called appdatasearch.xml
. This file is referenced in your
manifest with a meta-data tag with the name com.google.android.gms.appdatasearch
in the
Application
section of the AndroidManifest.xml
.
This is the root element of the XML file. It should contain a Corpus
element for each
corpus, and optionally a GlobalSearch
element.
The Corpus
element represents a corpus within AppDataSearch. You should provide one
Corpus
element for each corpus used by your application. This element should contain
a Section
element for each section within the corpus.
Includes the following attributes:
Attribute | Description |
---|---|
| The URI of the content provider that the index should crawl to get the data for this corpus. |
| The ID of the corpus. |
| Indicates if documents from this corpus can be trimmed when the index reaches its quota. |
| The version of the corpus. |
The GlobalSearch
element should be included if you want your apps data to appear
in the global search app. It should be contained within the top level AppDataSearch
element. If you opt into global search, you should provide a GlobalSearchCorpus
element within at least one of your Corpus
elements.
Includes the following attributes:
Attribute | Description |
---|---|
| The default value for the global search section default_intent_action . |
| The default value for the global search section default_intent_aactivity . |
| The default value for the global search section default_intent_data . |
| Whether or not global search is enabled for this app. |
| A localized string to identify this apps data within the global search app. |
| A localized string to describe this apps data within the global search apps settings. |
Each Corpus
element should include a GlobalSearchCorpus
element if the
corpus is to appear in the global search app. This element contains several
GlobalSearchSection
elements describing how to present results from this corpus within
the global search app.
Including this element within a Corpus
will only have any effect if you also include a
GlobalSearch
element within the top level AppDataSearch
element.
Includes the following attributes:
Attribute | Description |
---|---|
| Whether or not global search is enabled for this corpus. |
This element provides a mapping of sections from this corpus to a global search section.
You should provide one such element for each global search section you care about within
the GlobalSearchCorpus
element.
Includes the following attributes:
Attribute | Description |
---|---|
| The content of this global search section. |
| The global search section ID for this mapping. |
Attributes that can be used with a MapAttrs.
Includes the following attributes:
MapAttrs_cameraBearing
MapAttrs_cameraTargetLat
MapAttrs_cameraTargetLng
MapAttrs_cameraTilt
MapAttrs_cameraZoom
MapAttrs_mapType
MapAttrs_uiCompass
MapAttrs_uiRotateGestures
MapAttrs_uiScrollGestures
MapAttrs_uiTiltGestures
MapAttrs_uiZoomControls
MapAttrs_uiZoomGestures
MapAttrs_useViewLifecycle
MapAttrs_zOrderOnTop
The Section
element represents a section within a corpus. Each corpus can contain
up to 16 sections.
Includes the following attributes:
Attribute | Description |
---|---|
| The format of the section. |
| The ID of the section. |
| Indicates if this section should support prefix matching. |
| Indicates if this section should not be indexed. |
| Subsection separator. |
| The weight of the section. |
The SectionFeature
element represents a feature of a section. These features are
used to modify some semantic property of a section.
Includes the following attributes:
Attribute | Description |
---|---|
| The type of this section. |
The Set
element represents a parameter specified for a SectionFeature
.
Includes the following attributes:
Attribute | Description |
---|---|
| The name of this parameter. |
| The value of this parameter. |