BluetoothLE.Droid.Service.Service C# (CSharp) Method

Service() public method

Initializes a new instance of the BluetoothLE.Droid.Service class.
public Service ( Android.Bluetooth.BluetoothGattService nativeService, Android.Bluetooth.BluetoothGatt gatt, GattCallback callback ) : System
nativeService Android.Bluetooth.BluetoothGattService Native service.
gatt Android.Bluetooth.BluetoothGatt Native Gatt.
callback GattCallback Callback.
return System
		public Service(BluetoothGattService nativeService, BluetoothGatt gatt, GattCallback callback)
		{
			_nativeService = nativeService;
			_gatt = gatt;
			_callback = callback;

			_id = ServiceIdFromUuid(_nativeService.Uuid);

			Characteristics = new List<ICharacteristic>();
		}