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: 9EMAIL_TYPE
static val EMAIL_TYPE: Int
HitTestResult for hitting an email address.
Value: 4GEO_TYPE
static val GEO_TYPE: Int
HitTestResult for hitting a map address.
Value: 3IMAGE_ANCHOR_TYPE
static valIMAGE_ANCHOR_TYPE: Int
Deprecated: This type is no longer used.
Value: 6IMAGE_TYPE
static val IMAGE_TYPE: Int
HitTestResult for hitting an HTML::img tag.
Value: 5PHONE_TYPE
static val PHONE_TYPE: Int
HitTestResult for hitting a phone number.
Value: 2SRC_ANCHOR_TYPE
static val SRC_ANCHOR_TYPE: Int
HitTestResult for hitting a HTML::a tag with src=http.
Value: 7SRC_IMAGE_ANCHOR_TYPE
static val SRC_IMAGE_ANCHOR_TYPE: Int
HitTestResult for hitting a HTML::a tag with src=http + HTML::img.
Value: 8UNKNOWN_TYPE
static val UNKNOWN_TYPE: Int
Default HitTestResult, where the target is unknown.
Value: 0Public 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 |