iOS SDK 15.6.7,
Android SDK 15.5.3,
Hello Screen Dynamic States,
Bluedot Cordova plugin 4.0.1,
Bluedot Xamarin Android wrapper 15.5.2,
Bluedot Xamarin iOS wrapper 15.6.6,
Bluedot React Native wrapper 2.3.0,
/* * Provide a callback to receive Zone Info updates. The callback is called with the following parameters: * Parameter 1: Array of Zones * Array of strings identifying each Zone: * name (String) * description (String) * ID (String) */ exports.zoneInfoCallback = function( callback ) { exec( callback, null, "BDPointSDK", "zoneInfoCallback", [] ); }
This function provides a callback function to the SDK that will be called when Zone information is downloaded to your app. This can happen after initial authentication, after each Rule Download Interval has expired during the lifetime running of your app or when you have reached a geographical limit within a large set of Geofences.
This function should only be called after successful authentication with the Bluedot back-end systems using the authenticate function.
This is a function that will be called when an array of Zones has been downloaded to your app.
The callback function is passed one parameter as an array of Zone Information; each entry in this array contains an array of strings in the following order:
These strings can be accessed by using an enum
as demonstrated in the bdFunctions.js
Javascript wrapper that is bundled with the Bluedot plug-in.
const zoneInfoEnum = { name: 0, description: 1, ID: 2 } /* * This delegate function receives an array of Zone Infos. * Refer to bluedotPointSDKCDVPlugin.js for more information. */ function zoneUpdate( zoneInfos ) { updateStatus( Zones info has been updated for " + zoneInfos.length + " zones" ); // Process each of the Zone for( pos = 0; pos < zoneInfos.length; pos++ ) { var zoneInfo = zoneInfos[ pos ]; // Extract details for a status update var name = zoneInfo[ zoneInfoEnum.name ]; var description = zoneInfo[ zoneInfoEnum.description ]; updateStatus( "Zone " + name + " : " + description ); } }