Added in API level 1

HitTestResult

open class HitTestResult
kotlin.Any
   ↳ android.webkit.WebView.HitTestResult

Summary

Constants
static Int

static Int

HitTestResult for hitting an edit text area.

static Int

HitTestResult for hitting an email address.

static Int

HitTestResult for hitting a map address.

static Int

static Int

HitTestResult for hitting an HTML::img tag.

static Int

HitTestResult for hitting a phone number.

static Int

HitTestResult for hitting a HTML::a tag with src=http.

static Int

HitTestResult for hitting a HTML::a tag with src=http + HTML::img.

static Int

Default HitTestResult, where the target is unknown.

Public methods
open String?

Gets additional type-dependant information about the result.

open Int

Gets the type of the hit test result.

Constants

ANCHOR_TYPE

Added in API level 1
Deprecated in API level 15
static val ANCHOR_TYPE: Int

Deprecated: This type is no longer used.

Value: 1

EDIT_TEXT_TYPE

Added in API level 1
static val EDIT_TEXT_TYPE: Int

HitTestResult for hitting an edit text area.

Value: 9

EMAIL_TYPE

Added in API level 1
static val EMAIL_TYPE: Int

HitTestResult for hitting an email address.

Value: 4

GEO_TYPE

Added in API level 1
static val GEO_TYPE: Int

HitTestResult for hitting a map address.

Value: 3

IMAGE_ANCHOR_TYPE

Added in API level 1
Deprecated in API level 15
static val IMAGE_ANCHOR_TYPE: Int

Deprecated: This type is no longer used.

Value: 6

IMAGE_TYPE

Added in API level 1
static val IMAGE_TYPE: Int

HitTestResult for hitting an HTML::img tag.

Value: 5

PHONE_TYPE

Added in API level 1
static val PHONE_TYPE: Int

HitTestResult for hitting a phone number.

Value: 2

SRC_ANCHOR_TYPE

Added in API level 1
static val SRC_ANCHOR_TYPE: Int

HitTestResult for hitting a HTML::a tag with src=http.

Value: 7

SRC_IMAGE_ANCHOR_TYPE

Added in API level 1
static val SRC_IMAGE_ANCHOR_TYPE: Int

HitTestResult for hitting a HTML::a tag with src=http + HTML::img.

Value: 8

UNKNOWN_TYPE

Added in API level 1
static val UNKNOWN_TYPE: Int

Default HitTestResult, where the target is unknown.

Value: 0

Public methods

getExtra

Added in API level 1
open fun getExtra(): String?

Gets additional type-dependant information about the result. See WebView#getHitTestResult() for details. May either be null or contain extra information about this result.

Return
String? additional type-dependant information about the result

getType

Added in API level 1
open fun getType(): Int

Gets the type of the hit test result. See the XXX_TYPE constants defined in this class.

Return
Int the type of the hit test result