C# Класс SurfaceBluetooth.BluetoothMonitor

Provides continual Bluetooth discovery and events
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
StartDiscovery ( ) : void

Starts the background discovery thread. Set the DiscoveryTime and IdleTime first to define the continuous discovery pattern.

StopDiscovery ( ) : void

Sets a flag to abort discovery on next cycle.

Приватные методы

Метод Описание
AuthenticationHandler ( object o, InTheHand.Net.Bluetooth.BluetoothWin32AuthenticationEventArgs e ) : void
BluetoothMonitor ( ) : System
DiscoverThread ( ) : void
HwndBluetoothHook ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Hook into the native message loop for the application to process WM_DEVICECHANGE messages.

InitializeEvents ( ) : void
OnDeviceArrived ( object o ) : void
OnDeviceLeft ( object o ) : void
RegisterDeviceNotification ( IntPtr hRecipient, DEV_BROADCAST_HANDLE &NotificationFilter, int Flags ) : IntPtr
UnregisterDeviceNotification ( IntPtr Handle ) : bool

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

StartDiscovery() публичный Метод

Starts the background discovery thread. Set the DiscoveryTime and IdleTime first to define the continuous discovery pattern.
public StartDiscovery ( ) : void
Результат void

StopDiscovery() публичный Метод

Sets a flag to abort discovery on next cycle.
public StopDiscovery ( ) : void
Результат void