C# Class BluetoothAdapterWrapper

显示文件 Open project: drakelinglabs/unityarmada

Public Methods

Method Description
CancelDiscovery ( ) : bool
CheckBluetoothAddress ( string address ) : bool
Disable ( ) : bool
Enable ( ) : bool
GetAddress ( ) : string
GetBondedDevices ( ) : BluetoothDeviceWrapper[],
GetName ( ) : string
GetProfileConnectionState ( int profile ) : int
GetRemoteDevice ( string address ) : BluetoothDeviceWrapper,
GetScanMode ( ) : int
GetState ( ) : int
IsDiscovering ( ) : bool
IsEnabled ( ) : bool
SetName ( string name ) : bool
StartDiscovery ( ) : bool

Private Methods

Method Description
IsAdapterNull ( ) : bool
SetBluetoothAdapter ( ) : void

Method Details

CancelDiscovery() public static method

public static CancelDiscovery ( ) : bool
return bool

CheckBluetoothAddress() public static method

public static CheckBluetoothAddress ( string address ) : bool
address string
return bool

Disable() public static method

public static Disable ( ) : bool
return bool

Enable() public static method

public static Enable ( ) : bool
return bool

GetAddress() public static method

public static GetAddress ( ) : string
return string

GetBondedDevices() public static method

public static GetBondedDevices ( ) : BluetoothDeviceWrapper[],
return BluetoothDeviceWrapper[],

GetName() public static method

public static GetName ( ) : string
return string

GetProfileConnectionState() public static method

public static GetProfileConnectionState ( int profile ) : int
profile int
return int

GetRemoteDevice() public static method

public static GetRemoteDevice ( string address ) : BluetoothDeviceWrapper,
address string
return BluetoothDeviceWrapper,

GetScanMode() public static method

public static GetScanMode ( ) : int
return int

GetState() public static method

public static GetState ( ) : int
return int

IsDiscovering() public static method

public static IsDiscovering ( ) : bool
return bool

IsEnabled() public static method

public static IsEnabled ( ) : bool
return bool

SetName() public static method

public static SetName ( string name ) : bool
name string
return bool

StartDiscovery() public static method

public static StartDiscovery ( ) : bool
return bool