public class ProximityKitManager extends Object
Modifier 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() |
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
|
ProximityKitGeofenceNotifier |
getProximityKitGeofenceNotifier() |
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) |
void |
setKit(Kit kit)
Used by the system when sync'ing data form the server.
|
void |
setProximityKitGeofenceNotifier(ProximityKitGeofenceNotifier pkGeofenceNotifier) |
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)
public void sync()
public ProximityKitGeofenceNotifier getProximityKitGeofenceNotifier()
public void setProximityKitGeofenceNotifier(ProximityKitGeofenceNotifier pkGeofenceNotifier)
public 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.