Home | Trees | Indices | Help |
|
---|
|
The LocationChangeFilter is passed to Location.add_change_listener() when configuring for notification of location change events. Multiple filter attributes may be specified in a filter. Once the filter has been used to configure a listener, it is no longer needed and can be disposed. It can also be reused in order to setup filtering for another listener. <p> Location change filter information: <ul> <li>What types of location data should be watched for changes </ul> (More filtering types may be added in the future.) <p><b>Example:</b></p> locA = ne.get_location() // Creating a filter for change events filter = LocationChangeFilter() filter.add_subtype(LocationSubtype.LOCATION_TYPE_GEO) // Add a listener for location change events listener = MyLocationChangeListener() eh = locA.add_change_listener(listener, filter, null); <pre>
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
Constructs a LocationChangeFilter object. The LocationChangeFilter is used in order to filter what types of LocationChangeEvent should be sent. Currently, the only type of filtering provided is via location subtype. If no filtering is specified, then changes to all types of location information contained in the Location will result in a notification.
|
This method adds a subtype which the filter will allow. Multiple subtypes may be added to the filter by calling this method multiple times. If the input subtype is null or if the subtype is already added in the filter, no futher action will be take by this method.
|
This method removes an allowed subtype from the filter. If the input subtype is null or if the sybtype is not found in the filter, no futher action will be take by this method.
|
This function is used to query whether or not the filter is looking for a specific type of location data.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 18 09:17:30 2014 | http://epydoc.sourceforge.net |