Class BluetoothLeDevice
Definition
- Namespace:
- Tizen.Network.Bluetooth
- Assembly:
- Tizen.Network.Bluetooth.dll
- API Level:
- 3
This is the BluetoothLeDevice class. It handles the LE device operations like getting data from the scan result information.
C#Copypublic class BluetoothLeDevice
- Inheritance
-
BluetoothLeDevice
Properties
Declaration
C#Copypublic BluetoothLeDeviceAddressType AddressType { get; }
Property Value
Type | Description |
---|---|
BluetoothLeDeviceAddressType |
API Level: 3
Declaration
C#Copypublic byte[] AdvertsingDataInformation { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
API Level: 3
Declaration
C#Copypublic int Appearance { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Gets the appearance value. |
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 string DeviceName { get; }
Property Value
Type | Description |
---|---|
System.String | Gets the device name. |
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 ManufacturerData ManufacturerData { get; }
Property Value
Type | Description |
---|---|
ManufacturerData | Gets the manufacturer data containing the manucturer data and ID information. |
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 BluetoothLePacketType PacketType { get; set; }
Property Value
Type | Description |
---|---|
BluetoothLePacketType |
API Level: 3
Declaration
C#Copypublic string RemoteAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 3
Declaration
C#Copypublic int Rssi { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic byte[] ScanDataInformation { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
API Level: 3
ServiceSolictationUuid
Gets the service solicitation UUID list from the scan result information.
Declaration
C#Copypublic IEnumerable<string> ServiceSolictationUuid { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | Gets the list of the service solicitation UUIDs. |
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 IEnumerable<string> ServiceUuid { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | Gets the list of the string service UUIDs. |
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 int TxPowerLevel { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Gets the transmission power level in dB. |
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
Methods
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic BluetoothGattClient GattConnect(bool autoConnect)
Parameters
Type | Name | Description |
---|---|---|
Boolean | autoConnect | The auto connect flag. |
Returns
Type | Description |
---|---|
BluetoothGattClient | client instance |
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 or when the gatt connection attempt to remote device fails. |
API Level: 3
Declaration
C#Copypublic void GattDisconnect()
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 or when the GATT disconnection attempt to remote device fails. |
API Level: 3
Declaration
C#Copypublic IEnumerable<BluetoothLeServiceData> GetServiceDataList()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BluetoothLeServiceData> | Returns the service data list. |
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
GattConnectionStateChanged
This event is called when the GATT client connects/disconnects with the server.
Declaration
C#Copypublic event EventHandler<GattConnectionStateChangedEventArgs> GattConnectionStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<GattConnectionStateChangedEventArgs> |