Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.
Added in API level 26

android.companion

Interfaces

DeviceFilter<D extends Parcelable> A filter for companion devices of type D 

Classes

AssociationRequest A request for the user to select a companion device to associate with. 
AssociationRequest.Builder A builder for AssociationRequest 
BluetoothDeviceFilter A filter for Bluetooth(non-LE) devices 
BluetoothDeviceFilter.Builder A builder for BluetoothDeviceFilter 
BluetoothLeDeviceFilter A filter for Bluetooth LE devices 
BluetoothLeDeviceFilter.Builder Builder for BluetoothLeDeviceFilter 
CompanionDeviceManager System level service for managing companion devices

To obtain an instance call Context#getSystemService(Context#COMPANION_DEVICE_SERVICE) Then, call associate(android.companion.AssociationRequest, android.companion.CompanionDeviceManager.Callback, android.os.Handler) to initiate the flow of associating current package with a device selected by user. 

CompanionDeviceManager.Callback A callback to receive once at least one suitable device is found, or the search failed (e.g. 
WifiDeviceFilter A filter for Wifi devices 
WifiDeviceFilter.Builder Builder for WifiDeviceFilter