Added in API level 26

DeviceFilter


interface DeviceFilter<D : Parcelable!> : Parcelable
BluetoothDeviceFilter

A filter for Bluetooth(non-LE) devices

BluetoothLeDeviceFilter

A filter for Bluetooth LE devices

WifiDeviceFilter

A filter for Wifi devices

A filter for companion devices of type D

Summary

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Inherited functions
Int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Unit writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.