public class RingBackToneControl
extends java.lang.Object
Constructor and Description |
---|
RingBackToneControl(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
boolean |
enable()
Configures the use of ringback tone
Whether ringback tones can be played or not.
|
void |
enable(boolean value)
Gets the configured use of ringback tone
Whether ringback tones can be played or not.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
Result |
play()
Starts the ringback tone playing
The ringback tone will be played only if it is not already running and enabled! Error will be returned otherwise.
|
Sound |
ringBackSound()
Gets the configured ringback sound
|
void |
ringBackSound(Sound value)
Sets the configured ringback sound
|
Result |
stop()
Stops the playing of the ringback tone
The ringback tone will be stoped only if it is already running and enabled! Error will be returned otherwise.
|
public RingBackToneControl(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean enable()
public void enable(boolean value)
value
- public Sound ringBackSound()
Sound
public void ringBackSound(Sound value)
value
- The new ringback sound to be usedSound
public Result play()
enable