android-components / mozilla.components.concept.engine / HitResult

HitResult

sealed class HitResult (source)

Represents all the different supported types of data that can be found from long clicking an element.

Types

AUDIO

class AUDIO : HitResult

If the HTML element was of type 'HTMLAudioElement'.

EMAIL

class EMAIL : HitResult

The type used if the URI is prepended with 'mailto:'.

GEO

class GEO : HitResult

The type used if the URI is prepended with 'geo:'.

IMAGE

class IMAGE : HitResult

If the HTML element was of type 'HTMLImageElement'.

IMAGE_SRC

class IMAGE_SRC : HitResult

If the HTML element was of type 'HTMLImageElement' and contained a URI.

PHONE

class PHONE : HitResult

The type used if the URI is prepended with 'tel:'.

UNKNOWN

class UNKNOWN : HitResult

Default type if we're unable to match the type to anything. It may or may not have a src.

VIDEO

class VIDEO : HitResult

If the HTML element was of type 'HTMLVideoElement'.

Properties

src

val src: String

Inheritors

AUDIO

class AUDIO : HitResult

If the HTML element was of type 'HTMLAudioElement'.

EMAIL

class EMAIL : HitResult

The type used if the URI is prepended with 'mailto:'.

GEO

class GEO : HitResult

The type used if the URI is prepended with 'geo:'.

IMAGE

class IMAGE : HitResult

If the HTML element was of type 'HTMLImageElement'.

IMAGE_SRC

class IMAGE_SRC : HitResult

If the HTML element was of type 'HTMLImageElement' and contained a URI.

PHONE

class PHONE : HitResult

The type used if the URI is prepended with 'tel:'.

UNKNOWN

class UNKNOWN : HitResult

Default type if we're unable to match the type to anything. It may or may not have a src.

VIDEO

class VIDEO : HitResult

If the HTML element was of type 'HTMLVideoElement'.