Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.33 KB

radio.md

File metadata and controls

23 lines (16 loc) · 1.33 KB
-api-id -api-type -api-device-family-note
T:Windows.Devices.Radios.Radio
winrt class
xbox

Windows.Devices.Radios.Radio

-description

Represents a radio device on the system.

-remarks

Your code uses static members of this class like GetRadiosAsync, GetDeviceSelector, and FromIdAsync to query for radios and to retrieve instantiated Radio objects representing particular radios on the device.

Note that your code should call RequestAccessAsync at least once, from the UI thread, before trying to call SetStateAsync. This is because in some regions, with some user settings choices, attempting to change radio state requires user permission. In this situation, calling RequestAccessAsync shows the user a prompt asking if they want to allow your app to have permission to control the radio. If your app is running on a device that requires user permission and your code hasn't requested and received permission, then SetStateAsync will fail for lack of user permission.

-examples

-see-also