Arendi.BleLibrary  4.5.1.999
Core-Library (PCL)
Arendi.BleLibrary.Adapter.IAdapter Interface Reference

Interface that an adapter for the Arendi.BleLibrary must fulfill. More...

Public Member Functions

ITimer CreateTimer (TimerCallback timerCallback, object state, int dueTime, int period)
 Create a platform specific timer the core library can use. More...
 
void TriggerEvent< T > (EventHandler< T > eventHandler, object source, T args)
 Method to dispatch events from the core library. More...
 
void TriggerEvent (EventHandler eventHandler, object source)
 Method to dispatch events from the core library. More...
 
Assembly GetAdapterAssembly ()
 Get the adapter assembly More...
 

Detailed Description

Interface that an adapter for the Arendi.BleLibrary must fulfill.

Member Function Documentation

§ CreateTimer()

ITimer Arendi.BleLibrary.Adapter.IAdapter.CreateTimer ( TimerCallback  timerCallback,
object  state,
int  dueTime,
int  period 
)

Create a platform specific timer the core library can use.

Parameters
timerCallbackCallback if the timer is elapsed.
stateState object to be given at the callback.
dueTimeTime to elapse.
periodPeriod for the timer.
Returns
Created timer object.

§ GetAdapterAssembly()

Assembly Arendi.BleLibrary.Adapter.IAdapter.GetAdapterAssembly ( )

Get the adapter assembly

Returns
Assembly of the adapter.

§ TriggerEvent()

void Arendi.BleLibrary.Adapter.IAdapter.TriggerEvent ( EventHandler  eventHandler,
object  source 
)

Method to dispatch events from the core library.

Parameters
eventHandlerEvent handler
sourceSource of the event

§ TriggerEvent< T >()

void Arendi.BleLibrary.Adapter.IAdapter.TriggerEvent< T > ( EventHandler< T >  eventHandler,
object  source,
args 
)

Method to dispatch events from the core library.

Template Parameters
TEvent arguments
Parameters
eventHandlerEvent handler
sourceSource of the event
argsArguments for the triggered event.