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 | `data class AUDIO : HitResult` If the HTML element was of type 'HTMLAudioElement'.
EMAIL | `data class EMAIL : HitResult` The type used if the URI is prepended with 'mailto:'.
GEO | `data class GEO : HitResult` The type used if the URI is prepended with 'geo:'.
IMAGE | `data class IMAGE : HitResult` If the HTML element was of type 'HTMLImageElement'.
IMAGE_SRC | `data class IMAGE_SRC : HitResult` If the HTML element was of type 'HTMLImageElement' and contained a URI.
PHONE | `data class PHONE : HitResult` The type used if the URI is prepended with 'tel:'.
UNKNOWN | `data class UNKNOWN : HitResult` Default type if we're unable to match the type to anything. It may or may not have a src.
VIDEO | `data class VIDEO : HitResult` If the HTML element was of type 'HTMLVideoElement'.

### Properties

src | `open val src: String`

### Inheritors

AUDIO | `data class AUDIO : HitResult` If the HTML element was of type 'HTMLAudioElement'.
EMAIL | `data class EMAIL : HitResult` The type used if the URI is prepended with 'mailto:'.
GEO | `data class GEO : HitResult` The type used if the URI is prepended with 'geo:'.
IMAGE | `data class IMAGE : HitResult` If the HTML element was of type 'HTMLImageElement'.
IMAGE_SRC | `data class IMAGE_SRC : HitResult` If the HTML element was of type 'HTMLImageElement' and contained a URI.
PHONE | `data class PHONE : HitResult` The type used if the URI is prepended with 'tel:'.
UNKNOWN | `data class UNKNOWN : HitResult` Default type if we're unable to match the type to anything. It may or may not have a src.
VIDEO | `data class VIDEO : HitResult` If the HTML element was of type 'HTMLVideoElement'.