Cirrious.MvvmCross.Plugins.Sphero.Droid.Tooth.ConnectedSphero.ConnectedSphero C# (CSharp) Method

ConnectedSphero() public method

public ConnectedSphero ( Android.Bluetooth.BluetoothDevice bluetoothDevice, Android.Bluetooth.BluetoothSocket socket ) : System
bluetoothDevice Android.Bluetooth.BluetoothDevice
socket Android.Bluetooth.BluetoothSocket
return System
        public ConnectedSphero(BluetoothDevice bluetoothDevice, BluetoothSocket socket)
            : base(bluetoothDevice)
        {
            _spheroSocketWrapper = new StreamSocketWrapper(socket);
            _runner = new NonAwaitingConnectedSpheroRunner(_spheroSocketWrapper);
            _runner.Disconnected += (sender, args) => RaiseDisconnected();
            _runner.Start();
        }