public final class AssociationRequest

  1. Object
  2. AssociationRequest
What to show the user in the system device chooser, built with AssociationRequest.Builder.

Nested types

class AssociationRequest.BuilderAssembles an AssociationRequest.

Methods

public CompanionProfile getProfile()The profile requested.
public boolean isSingleDevice()Whether to associate immediately when exactly one device matches, rather than showing a one-item list.
public List<DeviceFilter> getFilters()The filters, OR-combined.

Inherited methods

Method details

getProfile

public CompanionProfile getProfile()
The profile requested. Never null.

isSingleDevice

public boolean isSingleDevice()
Whether to associate immediately when exactly one device matches, rather than showing a one-item list.

getFilters

public List<DeviceFilter> getFilters()
The filters, OR-combined. Never null and possibly empty, in which case every visible device is offered.