Datalogic .NET SDK

IsListening (Property)

 

Syntax

 

public bool IsListening {get; }

 

 

Class                           : DecodeEvent

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Returns true if the instance of Datalogic.API.DecodeEvent is listening to the decoder, otherwise false is returned.

 

Parameters Table

 

Type

Parameter

Description

 

 

 

 

[return]

-

 

TRUE if the instance of Datalogic.API.DecodeEvent is listening to the decoder, FALSE otherwise.

[on error]

-

 

-

 

 

Example

 

   private void MainDlg_Closing(object sender, System.ComponentModel.CancelEventArgs e)

   {

       // If our instance of DcdEvent is listening to the decoder, we need to make

       // sure we tell DcdEvent to stop listening.

       if(dcdEvent.IsListening)

       {

             dcdEvent.StopScanListener();

       }

   }

 

 

 

See Also

Example #021.

 

Copyright © Datalogic ADC. All Right Reserved