---
title: DevicePickerSupportedAction
framework: devicediscoveryui
role: symbol
role_heading: Structure
path: devicediscoveryui/devicepickersupportedaction
---

# DevicePickerSupportedAction

An environment value that indicates whether the current device supports device discovery.

## Declaration

```swift
struct DevicePickerSupportedAction
```

## Overview

Overview Access the action using the .devicePickerSupports key. Then call it as a function, passing the same browse descriptor and parameters you use to search for devices. struct SettingsView: View {

@Environment{\.devicePickerSupports} var myDevicePickerSupports     @Binding var showDevicePicker: Bool

var body: some View {         if myDevicePickerSupports(.applicationService("MyAppService"),                                   parameters: { .applicationService }) {             Button("Select A Device") {                 // Display a device picker.                 showDevicePicker = true             }         }     } }

## Topics

### Checking for support

- [callAsFunction(_:parameters:)](devicediscoveryui/devicepickersupportedaction/callasfunction(_:parameters:).md)

## See Also

### Pairing with nearby devices

- [DevicePicker](devicediscoveryui/devicepicker.md)
- [DDDevicePickerViewController](devicediscoveryui/dddevicepickerviewcontroller.md)
- [Connecting a tvOS app to other devices over the local network](devicediscoveryui/connecting-a-tvos-app-to-other-devices-over-the-local-network.md)
