BluetoothSocketSettings.Builder.SetSocketType(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定插槽類型。
[Android.Runtime.Register("setSocketType", "(I)Landroid/bluetooth/BluetoothSocketSettings$Builder;", "", ApiSince=36)]
public Android.Bluetooth.BluetoothSocketSettings.Builder SetSocketType(int socketType);
[<Android.Runtime.Register("setSocketType", "(I)Landroid/bluetooth/BluetoothSocketSettings$Builder;", "", ApiSince=36)>]
member this.SetSocketType : int -> Android.Bluetooth.BluetoothSocketSettings.Builder
參數
- socketType
- Int32
插座的種類。 價值屬於以下之一:BluetoothSocket.TYPE_RFCOMM;BluetoothSocket.TYPE_SCO;BluetoothSocket.TYPE_L2CAP;BluetoothSocket.TYPE_LE
傳回
這個建築商。 這個值不可能為零值。
- 屬性
備註
設定插槽類型。
Android 參考資料。android.bluetooth.BluetoothSocketSettings.Builder.setSocketType
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。