Class BluetoothLeAdvertiser
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
This is the BluetoothLeAdvertiser class. It handles the LE advertising operation amd callback.
C#
Copy
public class BluetoothLeAdvertiser
- Inheritance
-
objectBluetooth
Le Advertiser
Methods
View Source
StartAdvertising(BluetoothLeAdvertiseData)
Starts advertising using the advertise data object.
Declaration
C#
Copy
public void StartAdvertising(BluetoothLeAdvertiseData advertiseData)
Parameters
Type | Name | Description |
---|---|---|
Bluetooth |
advertiseData | The advertiser object carrying information of the advertising. |
Remarks
The Bluetooth must be enabled.
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the Bluetooth LE is not supported. |
System. |
Thrown when the Bluetooth LE is not enabled. |
Declaration
C#
Copy
public void StopAdvertising(BluetoothLeAdvertiseData advertiseData)
Parameters
Type | Name | Description |
---|---|---|
Bluetooth |
advertiseData | The advertiser object carrying information of the advertising. |
Remarks
The Bluetooth must be enabled.
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the Bluetooth LE is not supported. |
System. |
Thrown when the Bluetooth LE is not enabled. |
Events
Declaration
C#
Copy
public event EventHandler<AdvertisingStateChangedEventArgs> AdvertisingStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><Advertising |