Package com.arubanetworks.meridian.tags
Class TagStream
java.lang.Object
com.arubanetworks.meridian.tags.TagStream
Provides a stream of assets tag updates.
Use the listener to get the tag updates and the subscriptions to limit which tags are reported.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for the tag stream, must specify the listener and which tags to listen forNOTE: the filters are OR’d together, for example using addMapKey and addTagMac together will return results for all asset tags on specified floor and the specified tag
static interfaceListener which reports which tags were updated or removed -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called to clean up memorystatic voidgetAllAssetsAsync(EditorKey appKey, EditorKey mapKey, MeridianRequest.Listener<List<TagBeacon>> listener, MeridianRequest.ErrorListener errorListener) Retrieves all of the previously observed asset tags asynchronously.voidCalled to initialize the connection to the tag tracking service and start streaming updatesvoidCalled to close the connection to the asset tracking service and stop streaming updates
-
Method Details
-
getAllAssetsAsync
public static void getAllAssetsAsync(EditorKey appKey, EditorKey mapKey, MeridianRequest.Listener<List<TagBeacon>> listener, MeridianRequest.ErrorListener errorListener) Retrieves all of the previously observed asset tags asynchronously.This can be specified for a location (mapKey = null) or a map (appKey can be null). To track asset tag position changes, use the streaming API via the builder.
- Parameters:
appKey- location to get the tags formapKey- map to get the tags forlistener- listener to receive the tagserrorListener- listener called if an error occurs
-
startUpdatingTags
public void startUpdatingTags()Called to initialize the connection to the tag tracking service and start streaming updates -
stopUpdatingTags
public void stopUpdatingTags()Called to close the connection to the asset tracking service and stop streaming updates -
dispose
public void dispose()Called to clean up memory
-