コード例 #1
0
ファイル: BluetoothStructs.cs プロジェクト: yunmiha/TizenFX
        internal static BluetoothDeviceConnectionData ConvertStructToConnectionData(BluetoothDeviceConnectionStruct structInfo)
        {
            BluetoothDeviceConnectionData resultData = new BluetoothDeviceConnectionData();

            resultData.RemoteAddress = structInfo.Address;
            resultData.Link          = structInfo.LinkType;
            resultData.Reason        = structInfo.DisconnectReason;
            return(resultData);
        }
コード例 #2
0
 internal DeviceConnectionStateChangedEventArgs(bool isConnected, BluetoothDeviceConnectionData connectionData)
 {
     _isConnected    = isConnected;
     _connectionData = connectionData;
 }