語言

BluetoothSocketSettings.SocketType 屬性

定義

回傳藍牙插座的類型。

public Android.Bluetooth.BluetoothConnectionType SocketType { [Android.Runtime.Register("getSocketType", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getSocketType", "()I", "", ApiSince=36)>]
member this.SocketType : Android.Bluetooth.BluetoothConnectionType

屬性值

價值屬於以下之一:BluetoothSocket.TYPE_RFCOMM;BluetoothSocket.TYPE_SCO;BluetoothSocket.TYPE_L2CAP;BluetoothSocket.TYPE_LE

屬性

備註

回傳藍牙插座的類型。

預設為 BluetoothSocket#TYPE_RFCOMM。

Java 文件 android.bluetooth.BluetoothSocketSettings.getSocketType()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於