Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
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(Class)(Context.COMPANION_DEVICE_SERVICE) Then, call associate(AssociationRequest, Callback, 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