I have faced this as a very common requirement, where we need to display any html content to any specific portion of our app and we need to make a bridge which can talk with platform APIs.
So here again webview content can also make communication with Titanium native API’s. Here I have demonstrated a way to call native API functionality from webview contents.
With above video, I have described the way to bind Titanium API’s with HTML events, which can talk to each other.
In this post we will discover the use of Google API to get the current address and type of address by using the PhoneGap geolocation API and Google API.
Sometimes we need to get the address of a location from geolocation value. It is very very easy to get the same using Google API and PhoneGap. First we need to get the geolocation value i.e latitude and longitude using PhoneGap geolocation API.
Here are the steps that we need to follow.
Section is used to categorize rows into different category in a table view. Titanium provides ‘appendSection’ method to append section at bottom of any table. Here using the below video, I am going t describe the way to append section in a table view.
Here I have described the way to append section at bottom of a table view. Using the above code block we can achieve the same.
Titanium provides method associated table view which can be used to append row at the bottom of any table view. Here with the below video, I am going to describe you the way to append rows at the bottom of a table view.
Summary: From the above video we have learned the way to append row at the bottom of any table view with Alloy using Titanium.
Rhomobile has the ability to capture signature using the Signature API. Signature can be captured in two ways,
1. Full Screen Mode
2. Inline Mode
Note : From Rhodes 3.3.3 onwards, the inline mode has been moved on to RhoElement Vs 2 which is a paid version and requires a license to use it.
To use the Signature API, first, we need to add the camera capability in Build.yml,
We generally use table view API in titanium to display data in row manner but there might be a scenario where we need to take care about the number of rows. So here I will be describing different ways to count number of rows and sections present in table view.
Sometime we might get data from some external API or any other source that needs to be bind with a table where we are unaware about the number of rows that are present in the API response. So let’s create a situation for a table view where we will get the number of rows and section defined for those rows using Alloy with Titanium. Lets have a window where we will have a table view with some static rows.
So in order to do so lets, take a view called index.xml and its controller called index.js.
Camera Permission: In order to use the device camera, we need to get the permission by defining the capabilities in build.yml file.