Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Info

Import com.visilabs.android.* package to all files for which you will be using the SDK.

There are 4 different usages of the SDK:

1- Sending data to RMC

2- Sending data to RMC and Receiving Recommendations

...

Info

Please use only one of the methods based on your needs and requirements.

...

Sending data to RMC

Use the following method to only send data to RMC: 

Code Block
languagejava
Visilabs.CreateAPI("OrganizationID","SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext());

...

Sending Data to RMC and Receiving Recommendations

Use the following method to send data to RMC and to receive Recommendations:

Code Block
languagejava
Visilabs.CreateAPI("OrganizationID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), requestTimeout, "http://s.visilabs.net/json");

...

Sending Data to RMC, Receiving Recommendations and In-App Messages 

Use the following method to send data to RMC, to receive Recommendations and In-App messages:

Code Block
languagejava
Visilabs.CreateAPI("OrganizationID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), "http://s.visilabs.net/json", "http://s.visilabs.net/actjson", requestTimeout);

...

Sending Data to RMC, Receiving Recommendations and In-App Messages and Running Geofence Module

Use the following method to send data to RMC, to receive Recommendations and In-App messages and to run Geofence Module. If you are using this overload of CreateAPI method, define parameters in AndroidManifest.xml file.

...