Package-level declarations

Functions

Link copied to clipboard

Demonstrates how to use built-in user engagement features provided by the TWS SDK.

Link copied to clipboard
fun TWSViewCustomInterceptorExample(navController: NavController, twsInterceptorViewModel: TWSInterceptorViewModel = hiltViewModel())

Demonstrates how to use a custom TWSViewInterceptor with TWSView to intercept URL loading. By implementing the interceptUrlCallback, you can override the default web page loading behavior and open your native application flow (e.g., navigate to a specific screen in your app).

Link copied to clipboard
fun TWSViewCustomTabsExample(twsCustomTabsViewModel: TWSCustomTabsViewModel = hiltViewModel())

Demonstrates how to use TWSView with custom properties (props) defined in the TWSSnippet. The props field in the TWSSnippet allows you to attach custom metadata to a snippet in JSON format. These properties can be used for various purposes, such as configuring the behavior of your app or providing additional context to your view.

Link copied to clipboard
fun TWSViewInjectionExample(twsInjectionViewModel: TWSInjectionViewModel = hiltViewModel())

Demonstrates how to dynamically inject external resources into a TWSView using the dynamicResources property.

Link copied to clipboard
fun TWSViewMustacheExample(twsMustacheViewModel: TWSMustacheViewModel = hiltViewModel())

Demonstrates how to use the Mustache engine with TWSView in combination with local properties on the snippet.

Link copied to clipboard
fun TWSViewPermissionsExample(twsPermissionsViewModel: TWSPermissionsViewModel = hiltViewModel())

Demonstrates how to handle web permissions and file upload/download natively within TWSView.