public abstract class LNGeoBroadcastReceiver
extends java.lang.Object
| Constructor and Description |
|---|
LNGeoBroadcastReceiver()
Constructor that defines the default intent filter
|
LNGeoBroadcastReceiver(android.content.IntentFilter intentFilter)
Constructor that sets the given intent filter and applies the default filter properties
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onBroadcastReceived(LNGeoBroadcast broadcast)
Called when broadcast was received
|
boolean |
startObserving(android.content.Context context)
Registers a broadcast receiver for the given activity
|
boolean |
stopObserving(android.app.Activity activity)
Unregisters the given activity from receiving geo broadcasts
|
public LNGeoBroadcastReceiver()
public LNGeoBroadcastReceiver(android.content.IntentFilter intentFilter)
intentFilter - The intent filter that should be applied to the receiverpublic abstract void onBroadcastReceived(LNGeoBroadcast broadcast)
broadcast - The broadcast wrapper that holds all geo information that were submitted via the broadcastpublic boolean startObserving(android.content.Context context)
context - The context to which the receiver will be registeredpublic boolean stopObserving(android.app.Activity activity)
activity - The activity from which the receiver needs to be unregistered