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#
Copy
public class BluetoothLeAdvertiser : object
Inheritance
BluetoothLeAdvertiser

Methods

View Source

StartAdvertising(BluetoothLeAdvertiseData)

Starts advertising using the advertise data object.

Declaration
C#
Copy
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.

API Level: 3
View Source

StopAdvertising(BluetoothLeAdvertiseData)

Stops the advertising.

Declaration
C#
Copy
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.

API Level: 3

Events

View Source

AdvertisingStateChanged

This event is called when the LE advertising state changes.

Declaration
C#
Copy
public event EventHandler<AdvertisingStateChangedEventArgs> AdvertisingStateChanged
Event Type
Type Description
EventHandler<AdvertisingStateChangedEventArgs>
API Level: 3

Extension Methods