Skip to content

Delegate implementation

MGasztold edited this page Dec 15, 2016 · 4 revisions

The application may implement a delegate object to intercept the processing and notifications upon area entered or exited events.

There is one delegate interface:

com.ubudu.sdk.UbuduAreaDelegate

It can be configured with the setAreaDelegate method of com.ubudu.sdk.UbuduAreaManager class (which is an abstract class extended by both UbuduBeaconManager and UbuduGeofenceManager).

The delegate will receive generic com.ubudu.sdk.UbuduArea objects which can be casted to UbuduBeaconRegion or UbuduGeofence for access to specific methods for doing some custom processing.

Operation modes

automatic notification sending is enabled delegate result

false

null

actions can't be taken

false

delegate

actions are forwared to the delegate

true

null

actions are taken automatically

true

delegate

actions are taken automatically

Clone this wiki locally