Class Radio
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Radio.dll
- API Level:
- 3
Provides a means for using the radio feature.
C#Copypublic class Radio : IDisposable
- Inheritance
-
System.ObjectRadio
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Radio()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The radio feature is not supported. |
API Level: 3
Properties
Declaration
C#Copypublic int ChannelSpacing { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic int Frequency { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic Range FrequencyRange { get; }
Property Value
Type | Description |
---|---|
Range |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic bool IsMuted { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the radio is muted; otherwise, false. The default is false. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic int SignalStrength { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic RadioState State { get; }
Property Value
Type | Description |
---|---|
RadioState |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic float Volume { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The default is 1.0. |
Remarks
Valid volume range is from 0 to 1.0(100%), inclusive.
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 3
Declaration
C#Copypublic Task<int> SeekDownAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Int32> | A task that represents the asynchronous seeking operation. The result value is the current frequency in the range of 87500 ~ 108000 kHz. It can be -1 if the seeking operation has failed. |
Remarks
The radio must be in the Playing state.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic Task<int> SeekUpAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Int32> | A task that represents the asynchronous seeking operation. The result value is the current frequency in the range of 87500 ~ 108000 kHz. It can be -1 if the seeking operation has failed. |
Remarks
The radio must be in the Playing state.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic void Start()
Remarks
The radio must be in the Ready state.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
StartScan()
Starts the radio scanning and triggers the ScanUpdated event when the scan information is updated.
Declaration
C#Copypublic void StartScan()
Remarks
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic void Stop()
Remarks
The radio must be in the Playing state.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
API Level: 3
Declaration
C#Copypublic void StopScan()
Remarks
The radio must be in the Scanning state.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The radio is not in the valid state. |
ObjectDisposedException | The radio already has been disposed. |
See Also
API Level: 3
Events
Declaration
C#Copypublic event EventHandler<RadioInterruptedEventArgs> Interrupted
Event Type
Type | Description |
---|---|
System.EventHandler<RadioInterruptedEventArgs> |
API Level: 3
Declaration
C#Copypublic event EventHandler ScanCompleted
Event Type
Type | Description |
---|---|
System.EventHandler |
API Level: 3
Declaration
C#Copypublic event EventHandler ScanStopped
Event Type
Type | Description |
---|---|
System.EventHandler |
API Level: 3
Declaration
C#Copypublic event EventHandler<ScanUpdatedEventArgs> ScanUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<ScanUpdatedEventArgs> |