AntDeviceCollection Class

This is a thread safe observable collection of ANT devices.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.0+09c2d7a7f0bf2c05495d6305ac56abb150641a86
C#
public sealed class AntDeviceCollection : ObservableCollection<AntDevice>, 
	IDisposable
Inheritance
Object    CollectionAntDevice    ObservableCollectionAntDevice    AntDeviceCollection
Implements
IDisposable

Remarks

This class will create an AntDevice from one of the supported ANT device classes and add it to the collection as they are discovered. An important consideration is when the device is no longer available. You may supply a timeout duration or the number of missed messages. You should prefer missed messages as this scales the timeout duration based on the broadcast transmission rate of the particular ANT device. The timeout/missed messages will be applied globally to ANT devices created by this collection.

Constructors

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

Properties

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

Methods

AddAdds the specified item to the end of the collection.
Clear
(Inherited from CollectionAntDevice)
Contains
(Inherited from CollectionAntDevice)
CopyTo
(Inherited from CollectionAntDevice)
Dispose Disposes the ANT device collection and all ANT devices in the collection. Also disposes ANT channels created by this collection.
Equals
(Inherited from Object)
GetEnumerator
(Inherited from CollectionAntDevice)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
IndexOf
(Inherited from CollectionAntDevice)
Insert
(Inherited from CollectionAntDevice)
Move
(Inherited from ObservableCollectionAntDevice)
RemoveRemoves the specified item from the collection.
RemoveAt
(Inherited from CollectionAntDevice)
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.

See Also