AntDeviceCollection Class

This is a thread safe observable collection of ANT devices.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+00799c19dddffadca3dc463ea835768539806d36
C#
public class AntDeviceCollection : ObservableCollection<AntDevice>
Inheritance
Object    CollectionAntDevice    ObservableCollectionAntDevice    AntDeviceCollection

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)
Items
(Inherited from CollectionAntDevice)

Methods

AddAdds the specified item 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)
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 item 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.

See Also