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? |
getExtra() Gets additional type-dependant information about the result. |
open Int |
getType() Gets the type of the hit test result. |
Constants
EDIT_TEXT_TYPE
static val EDIT_TEXT_TYPE: Int
HitTestResult for hitting an edit text area.
Value: 9
EMAIL_TYPE
static val EMAIL_TYPE: Int
HitTestResult for hitting an email address.
Value: 4
GEO_TYPE
static val GEO_TYPE: Int
HitTestResult for hitting a map address.
Value: 3
IMAGE_ANCHOR_TYPE
static valIMAGE_ANCHOR_TYPE: Int
Deprecated: This type is no longer used.
Value: 6
IMAGE_TYPE
static val IMAGE_TYPE: Int
HitTestResult for hitting an HTML::img tag.
Value: 5
PHONE_TYPE
static val PHONE_TYPE: Int
HitTestResult for hitting a phone number.
Value: 2
SRC_ANCHOR_TYPE
static val SRC_ANCHOR_TYPE: Int
HitTestResult for hitting a HTML::a tag with src=http.
Value: 7
SRC_IMAGE_ANCHOR_TYPE
static val SRC_IMAGE_ANCHOR_TYPE: Int
HitTestResult for hitting a HTML::a tag with src=http + HTML::img.
Value: 8
UNKNOWN_TYPE
static val UNKNOWN_TYPE: Int
Default HitTestResult, where the target is unknown.
Value: 0
Public methods
getExtra
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
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 |