Compartilhar via


CompanionDeviceManager.ExtraDevice Field

Definition

A device, returned in the activity result of the IntentSender received in Callback#onDeviceFound

        Type is:
        <ul>
            &lt;li&gt;for classic Bluetooth - <code data-dev-comment-type="c">android.bluetooth.BluetoothDevice</code>&lt;/li&gt;
            &lt;li&gt;for Bluetooth LE - <code data-dev-comment-type="c">android.bluetooth.le.ScanResult</code>&lt;/li&gt;
            &lt;li&gt;for WiFi - <code data-dev-comment-type="c">android.net.wifi.ScanResult</code>&lt;/li&gt;
        &lt;/ul&gt;
[Android.Runtime.Register("EXTRA_DEVICE", ApiSince=26)]
public const string ExtraDevice;
[<Android.Runtime.Register("EXTRA_DEVICE", ApiSince=26)>]
val mutable ExtraDevice : string

Field Value

Attributes

Remarks

A device, returned in the activity result of the IntentSender received in Callback#onDeviceFound

Type is: <ul> <li>for classic Bluetooth - android.bluetooth.BluetoothDevice</li> <li>for Bluetooth LE - android.bluetooth.le.ScanResult</li> <li>for WiFi - android.net.wifi.ScanResult</li> </ul>

This member is deprecated. use AssociationInfo#getAssociatedDevice() instead.

Java documentation for android.companion.CompanionDeviceManager.EXTRA_DEVICE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to