AntCollection Class

This class largely mirrors AntDeviceCollection but is designed specifically to be integrated into an application via dependency injection.

Definition

Namespace: SmallEarthTech.AntPlus.Extensions.Hosting
Assembly: SmallEarthTech.AntPlus.Extensions.Hosting (in SmallEarthTech.AntPlus.Extensions.Hosting.dll) Version: 2.0.2+09510e98330cdc3d3df026a419ae1a9c0ccaadca
C#
public class AntCollection : ObservableCollection<AntDevice>, 
	IDisposable
Inheritance
Object    CollectionAntDevice    ObservableCollectionAntDevice    AntCollection
Implements
IDisposable

Constructors

AntCollection Initializes a new instance of the AntCollection class. The ANT radio is initialized for continuous scan mode.

Properties

Count
(Inherited from CollectionAntDevice)
Item
(Inherited from CollectionAntDevice)
Items
(Inherited from CollectionAntDevice)

Methods

AddAdds the specified AntDevice to the end of the collection.
BlockReentrancy
(Inherited from ObservableCollectionAntDevice)
CheckReentrancy
(Inherited from ObservableCollectionAntDevice)
Clear
(Inherited from CollectionAntDevice)
ClearItems
(Inherited from ObservableCollectionAntDevice)
Contains
(Inherited from CollectionAntDevice)
CopyTo
(Inherited from CollectionAntDevice)
Dispose Release the ANT channels.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetEnumerator
(Inherited from CollectionAntDevice)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
IndexOf
(Inherited from CollectionAntDevice)
Insert
(Inherited from CollectionAntDevice)
InsertItem
(Inherited from ObservableCollectionAntDevice)
MemberwiseClone
(Inherited from Object)
Move
(Inherited from ObservableCollectionAntDevice)
MoveItem
(Inherited from ObservableCollectionAntDevice)
OnCollectionChanged
(Inherited from ObservableCollectionAntDevice)
OnPropertyChanged
(Inherited from ObservableCollectionAntDevice)
RemoveRemoves the specified AntDevice from the collection.
RemoveAt
(Inherited from CollectionAntDevice)
RemoveItem
(Inherited from ObservableCollectionAntDevice)
SetItem
(Inherited from ObservableCollectionAntDevice)
StartScanning Initializes the ANT radio for continuous scan mode and setup ANT channels for use by this collection.
ToString
(Inherited from Object)

Events

Fields

CollectionLock The collection lock typically used by WPF applications to synchronize UI updates when devices are added or removed from the collection. For example, in the code behind for a window that is using this collection would include the following line in its constructor - BindingOperations.EnableCollectionSynchronization(viewModel.AntDevices, viewModel.AntDevices.CollectionLock);

See Also