public class ProximityKitManager extends Object
android.os.Build.VERSION.SDK_INT
was added in this API levelModifier and Type | Field and Description |
---|---|
protected android.content.Context |
context |
Modifier | Constructor and Description |
---|---|
protected |
ProximityKitManager() |
protected |
ProximityKitManager(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
static void |
debugOn()
Turns debugging on for geofences and beacons.
|
void |
disableGeofences()
Explicitly disable geofence support.
|
void |
enableGeofences()
Explicitly enable geofence support.
|
com.radiusnetworks.proximity.proximitykit.BeaconAdapter |
getBeaconAdapter() |
BeaconManager |
getBeaconManager()
Convenience method to access the beacon manager
|
static ProximityKitManager |
getInstanceForApplication(android.content.Context context)
An accessor for the singleton instance of this class.
|
Kit |
getKit()
The local copy of the kit you have set up on ProximityKit.com
|
int |
getMaxRegionsBeforeRollup()
Gets the maximum number of regions that may be individually configured in ProximityKit before
the regions will start being automatically combined.
|
ProximityKitGeofenceNotifier |
getProximityKitGeofenceNotifier()
Getter for the currently configured Geofence notification callback handler.
|
ProximityKitMonitorNotifier |
getProximityKitMonitorNotifier() |
ProximityKitRangeNotifier |
getProximityKitRangeNotifier() |
ProximityKitSyncNotifier |
getProximityKitSyncNotifier() |
void |
restart()
This method is used to reconfigure the ProximityKit properties at runtime
There is no need to call this method if you are configurng ProximityKit from a .properties
file.
|
void |
restart(String code)
This method is used to reconfigure the ProximityKit properties at runtime
There is no need to call this method if you are configurng ProximityKit from a .properties
file.
|
void |
setKit(Kit kit)
Used by the system when sync'ing data form the server.
|
void |
setMaxRegionsBeforeRollup(int regionCount)
Sets the maximum number of regions that may be individually configured in ProximityKit before
the regions will start being automatically combined.
|
void |
setProximityKitGeofenceNotifier(ProximityKitGeofenceNotifier pkGeofenceNotifier)
Register the Geofence notification callback handler.
|
void |
setProximityKitMonitorNotifier(ProximityKitMonitorNotifier pkMonitorNotifier) |
void |
setProximityKitRangeNotifier(ProximityKitRangeNotifier pkRangeNotifier) |
void |
setProximityKitSyncNotifier(ProximityKitSyncNotifier pkSyncNotifier) |
void |
setSyncInterval(long milliseconds)
Sets the length of time between sync.
|
void |
start()
Start syncing with the cloud and monitoring for various regions.
|
void |
stop()
Stop all Proximity Kit activities.
|
void |
sync() |
protected ProximityKitManager()
protected ProximityKitManager(android.content.Context context)
public void disableGeofences()
public void enableGeofences() throws GooglePlayServicesException
start()
.
It is the caller's responsibility to ensure that the application has properly included and
configured the Google Play services library. Additionally, it is the caller's responsibility
to ensure that the device supports Google Play services. Failure to ensure these will result
in a GooglePlayServicesException
.GooglePlayServicesException
- It is the client's responsibility to ensure that Google Play services is properly
listed as a dependency, configured, and then available on the device.
This exception is thrown under several conditions:
public static ProximityKitManager getInstanceForApplication(android.content.Context context)
public BeaconManager getBeaconManager()
public static void debugOn()
public void start()
public void stop()
public void restart()
public void restart(String code)
code
- Custom code which is used to configure the syncpublic void sync()
public ProximityKitGeofenceNotifier getProximityKitGeofenceNotifier()
ProximityKitGeofenceNotifier
or null
if
nothing has been configured.public void setProximityKitGeofenceNotifier(ProximityKitGeofenceNotifier pkGeofenceNotifier)
pkGeofenceNotifier
- The Geofence notification callback handlerpublic void setProximityKitMonitorNotifier(ProximityKitMonitorNotifier pkMonitorNotifier)
public ProximityKitMonitorNotifier getProximityKitMonitorNotifier()
public void setProximityKitRangeNotifier(ProximityKitRangeNotifier pkRangeNotifier)
public ProximityKitRangeNotifier getProximityKitRangeNotifier()
public void setProximityKitSyncNotifier(ProximityKitSyncNotifier pkSyncNotifier)
public ProximityKitSyncNotifier getProximityKitSyncNotifier()
public Kit getKit()
public void setKit(Kit kit)
kit
- public com.radiusnetworks.proximity.proximitykit.BeaconAdapter getBeaconAdapter()
public void setSyncInterval(long milliseconds)
milliseconds
- Number of minutes to wait between each sync with Proximity Kit.public void setMaxRegionsBeforeRollup(int regionCount)
regionCount
- public int getMaxRegionsBeforeRollup()
ProximityKitManager.setMaxRegionsBeforeRollup(int)