This topic has not yet been rated - Rate this topic

FMRadio.PowerMode Property

April 12, 2014

Sets the RadioPowerMode of the device. Setting this property turns the device radio on or off.

Namespace:  Microsoft.Devices.Radio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public RadioPowerMode PowerMode { get; set; }

When your application is deactivated, such as when receiving a Deactivated event, the radio will not stop playing automatically. As a best practice, set PowerMode to 'off' when your application is deactivated, to prevent background playback.

Caution noteCaution:

FM radio is supported only in apps that target Windows Phone OS 7.1. If you use the FMRadio class in apps that target Windows Phone OS 8.0 or later, a RadioDisabledException indicates that the FM radio feature is not available. On Windows Phone 8 devices with a build of 8.0.10322 or greater, the run-time exception may not occur if you use the FMRadio API. However, the FMRadio API is not supported for apps that target Windows Phone OS 8.0.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.