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

Name Summary
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

Name Summary
src open val src: String

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
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’.