System.Tether.Manager.TTetheringAdapter.GenerateTimer
Delphi
function GenerateTimer(const AEvent: TTetheringNotifyEvent; Timeout: Cardinal): TThread;
C++
System::Classes::TThread* __fastcall GenerateTimer(const TTetheringNotifyEvent AEvent, unsigned Timeout);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringAdapter |
Description
Creates a timer that, once started, calls the specified event handler when the specified time in milliseconds passes unless you stop the timer manually.
The tethering implementation uses GenerateTimer to create timers to handle timeouts in information requests between adapters. The class of these timers is TThreadTimer
, a type declared as private within the declaration of TTetheringAdapter. TThreadTimer
subclasses TThread.
You can control the timer as follows:
- Call
Start
to start the timer. - Call
Cancel
to stop the timer manually.