# Class AssociationRequest

java.lang.Object
com.codename1.nearby.companion.AssociationRequest

public final class AssociationRequest extends Object
What to show the user in the system device chooser, built with `AssociationRequest.Builder`.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `AssociationRequest.Builder`
  Assembles an `AssociationRequest`.

- ## Method Summary

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

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.