This guide is designed for the Android operating system.
To embed within an iOS app, please use the iOS version of this guide located at the following link: Embed in Mobile (iOS)To load the Trip Element within a mobile application, we recommend using WebView.
This page demonstrates loading the Trip Element in an Android application, using the WebView Android Development Kit for Java.
First, you can create a standard HTML file that loads the Trip Element just like any other webpage. Here, you can define your elementConfig and pre-configure the element with the desired properties.
Next, set up WebView in your development environment. Here, you will call the HTML file that you created in Step 1 in order to display the Trip Element within your mobile app (Line 35). The following code example is written in Java.
You should now have the Trip Element loaded within your mobile app. Sample output is provided below.