@Document(name = WebPage.SCHEMA_NAME)
class WebPage : Thing


AppSearch document representing a WebPage entity.

See https://schema.org/WebPage for more context.

Summary

Constants

const String!
SCHEMA_NAME = "builtin:WebPage"

Public constructors

Constructor for WebPage.

Public functions

ImageObject?

Returns a favicon that represents the web page.

String?

Returns the source of how the web page was accessed in CamelCase.

Inherited functions

From androidx.appsearch.builtintypes.Thing
(Mutable)List<String!>

Returns an unmodifiable list of aliases, if any, for this item.

Long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

String?

Returns a description of this item.

Int

Returns the intrinsic score (or importance) of this item.

Long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

String

Returns the unique identifier for this item.

String?

Returns the URL for an image of this item.

String?

Returns the name of this item.

String

Returns the namespace (or logical grouping) for this item.

(Mutable)List<PotentialAction!>

Returns the actions that can be taken on this object.

String?

Returns the deeplink URL of this item.

Constants

SCHEMA_NAME

Added in 1.1.0
const val SCHEMA_NAME = "builtin:WebPage": String!

Public constructors

WebPage

Added in 1.2.0-alpha02
@ExperimentalAppSearchApi
WebPage(builder: WebPage.BuilderBase<*>)

Constructor for WebPage.

Parameters
builder: WebPage.BuilderBase<*>

The builder to construct the WebPage from.

Public functions

getFavicon

Added in 1.1.0
fun getFavicon(): ImageObject?

Returns a favicon that represents the web page.

getSource

Added in 1.2.0-alpha02
@ExperimentalAppSearchApi
fun getSource(): String?

Returns the source of how the web page was accessed in CamelCase. (e.g. Tab, CustomTab)