Last active
August 24, 2016 01:58
-
-
Save henrybluecats/c08d8726d5607cde8cc23b2abac36ae6 to your computer and use it in GitHub Desktop.
Example of BCLogManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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