匯出 (0) 列印
全部展開
EN
本內容沒有您的語言版本,但有英文版本。

FMRadio Class

July 28, 2014

This class acts as a singleton controller for the device radio.

System.Object
  Microsoft.Devices.Radio.FMRadio

Namespace:  Microsoft.Devices.Radio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public sealed class FMRadio

The FMRadio type exposes the following members.

  NameDescription
Public propertyCurrentRegionSets the frequency region information for the FMRadio class.
Public propertyFrequencyTunes the FMRadio to a new frequency.
Public propertyStatic memberInstanceReturns a singleton that represents the FMRadio class.
Public propertyPowerModeSets the RadioPowerMode of the device. Setting this property turns the device radio on or off.
Public propertySignalStrengthRetrieves the received signal strength indicator (RSSI) value for the currently tuned frequency.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_MEDIALIB

Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

顯示:
© 2014 Microsoft