public class TunerChannel extends GObject
Modifier and Type | Class and Description |
---|---|
static class |
TunerChannel.Flags |
static interface |
TunerChannel.FREQUENCY_CHANGED
Signal emitted when the frequency on a channel changes
|
static interface |
TunerChannel.SIGNAL_CHANGED
Signal emitted when the signal strength on a channel changes
|
GObject.GCallback
NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
TunerChannel(NativeObject.Initializer init)
For internal gstreamer-java use only
|
Modifier and Type | Method and Description |
---|---|
void |
connect(TunerChannel.FREQUENCY_CHANGED listener)
Add a listener for frequency-changed messages.
|
void |
connect(TunerChannel.SIGNAL_CHANGED listener)
Add a listener for signal-changed messages.
|
void |
disconnect(TunerChannel.FREQUENCY_CHANGED listener)
Disconnect the listener for frequency-changed messages.
|
void |
disconnect(TunerChannel.SIGNAL_CHANGED listener)
Disconnect the listener for signal-changed messages.
|
long |
getFrequency()
Retrieves the current frequency from the given channel
|
java.lang.String |
getLabel()
Retrieves the label from the given channel
|
int |
getSignalStrength()
Gets the strength of the signal on this channel.
|
boolean |
hasFlag(int flag)
Checks if a flag is set on this channel.
|
boolean |
isTuningChannel()
Checks if the frequency of this channel can be changed
|
void |
setFrequency(long frequency)
Sets a tuning frequency on the given tuner/channel.
|
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, ref, removeCallback, set, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public TunerChannel(NativeObject.Initializer init)
init
- initialization datapublic final boolean hasFlag(int flag)
public long getFrequency()
public java.lang.String getLabel()
public void setFrequency(long frequency)
Note: this requires the given channel to be a "tuning"
channel, which can be checked with isTuningChannel()
public boolean isTuningChannel()
public int getSignalStrength()
Note: this requires the current channel to be a "tuning"
channel, i.e. a channel on which frequency can be set. This can be
checked using isTuningChannel()
public void connect(TunerChannel.FREQUENCY_CHANGED listener)
listener
- The listener to be called when the frequency changespublic void disconnect(TunerChannel.FREQUENCY_CHANGED listener)
listener
- The listener that was registered to receive the message.public void connect(TunerChannel.SIGNAL_CHANGED listener)
listener
- The listener to be called when the signal strength changespublic void disconnect(TunerChannel.SIGNAL_CHANGED listener)
listener
- The listener that was registered to receive the message.