BluetoothDevice.GetEncryptionStatus(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
接続されているデバイスの暗号化状態を取得します。
[Android.Runtime.Register("getEncryptionStatus", "(I)Landroid/bluetooth/EncryptionStatus;", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.EncryptionStatus? GetEncryptionStatus(int transport);
[<Android.Runtime.Register("getEncryptionStatus", "(I)Landroid/bluetooth/EncryptionStatus;", "", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetEncryptionStatus : int -> Android.Bluetooth.EncryptionStatus
パラメーター
- transport
- Int32
リンクの状態を取得するトランスポート。
返品
デバイスの暗号化状態。デバイスが暗号化されていない場合、または接続されていない場合は null。
- 属性
注釈
接続されているデバイスの暗号化状態を取得します。 この API は、暗号化状態 (接続されている場合) を返します。 暗号化の詳細は EncryptionStatus オブジェクトで囲まれます。デバイスが暗号化されていない (または接続されていない) 場合は null になる可能性があります。
このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。