Stay organized with collections
Save and categorize content based on your preferences.
WebViewTransport
open class WebViewTransport
Transportation object for returning WebView across thread boundaries.
Summary
Public methods |
open WebView? |
Gets the WebView object.
|
open Unit |
Sets the WebView to the transportation object.
|
Public constructors
WebViewTransport
WebViewTransport()
Public methods
getWebView
open fun getWebView(): WebView?
Gets the WebView object.
Return |
WebView? |
the transported WebView object This value may be null . |
setWebView
open fun setWebView(webview: WebView?): Unit
Sets the WebView to the transportation object.
Parameters |
webview |
WebView?: the WebView to transport This value may be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WebView.WebViewTransport\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nWebViewTransport\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebView.WebViewTransport \"View this page in Java\") \n\n```\nopen class WebViewTransport\n```\n\n|---|----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.webkit.WebView.WebViewTransport](#) |\n\nTransportation object for returning WebView across thread boundaries.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------|---|\n| [WebViewTransport](#WebViewTransport())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [WebView](/reference/kotlin/android/webkit/WebView)? | [getWebView](#getWebView())`()` Gets the WebView object. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setWebView](#setWebView(android.webkit.WebView))`(`webview:` `[WebView](/reference/kotlin/android/webkit/WebView)?`)` Sets the WebView to the transportation object. |\n\nPublic constructors\n-------------------\n\n### WebViewTransport\n\n```\nWebViewTransport()\n```\n\nPublic methods\n--------------\n\n### getWebView\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getWebView(): WebView?\n```\n\nGets the WebView object.\n\n| Return ||\n|------------------------------------------------------|----------------------------------------------------------|\n| [WebView](/reference/kotlin/android/webkit/WebView)? | the transported WebView object This value may be `null`. |\n\n### setWebView\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setWebView(webview: WebView?): Unit\n```\n\nSets the WebView to the transportation object.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------|\n| `webview` | [WebView](/reference/kotlin/android/webkit/WebView)?: the WebView to transport This value may be `null`. |"]]