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