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.
public class BluetoothLeAdvertiser
- Inheritance
-
BluetoothLeAdvertiser
Methods
View SourceStartAdvertising(BluetoothLeAdvertiseData)
Starts advertising using the advertise data object.
Declaration
public 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 |
---|---|
NotSupportedException | Thrown when the Bluetooth LE is not supported. |
InvalidOperationException | Thrown when the Bluetooth LE is not enabled. |
API Level: 3
View SourceStopAdvertising(BluetoothLeAdvertiseData)
Stops the advertising.
Declaration
public 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 |
---|---|
NotSupportedException | Thrown when the Bluetooth LE is not supported. |
InvalidOperationException | Thrown when the Bluetooth LE is not enabled. |
API Level: 3
Events
View SourceAdvertisingStateChanged
This event is called when the LE advertising state changes.
Declaration
public event EventHandler<AdvertisingStateChangedEventArgs> AdvertisingStateChanged
Event Type
Type | Description |
---|---|
EventHandler<AdvertisingStateChangedEventArgs> |