Skip to content

Instantly share code, notes, and snippets.

@henrybluecats
Last active August 24, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrybluecats/c08d8726d5607cde8cc23b2abac36ae6 to your computer and use it in GitHub Desktop.
Save henrybluecats/c08d8726d5607cde8cc23b2abac36ae6 to your computer and use it in GitHub Desktop.
Example of BCLogManager
Map<String, String> options = new HashMap<String, String>();
options.put(BlueCatsSDK.BC_OPTION_CROWD_SOURCE_BEACON_UPDATES, "false");
options.put(BlueCatsSDK.BC_OPTION_CACHE_ALL_BEACONS_FOR_APP, "true");
//add any of your own options
/*
set options to SDK
*/
BlueCatsSDK.setOptions(options);
/*
enable network logs and scanner logs
*/
BCLogManager.getInstance().setLogLevel(BCLogManager.BC_LOG_TYPE_NETWORK, BCLogManager.BC_LOG_LEVEL_MORE);
BCLogManager.getInstance().setLogLevel(BCLogManager.BC_LOG_TYPE_SCANNER, BCLogManager.BC_LOG_LEVEL_LESS);
/*
start purring
*/
BlueCatsSDK.startPurringWithAppToken(getApplicationContext(), appToken);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment