Interface java.telephony.phone.PhoneHookswitch
All Packages Class Hierarchy This Package Previous Next Index
Interface java.telephony.phone.PhoneHookswitch
- public interface PhoneHookswitch
- extends Object
- extends Component
-
OFF_HOOK
- The Hookswitch is OFF_HOOK.
-
ON_HOOK
- The Hookswitch is ON_HOOK.
-
getHookSwitchState()
- Returns the current state of the hookswitch.
-
setHookSwitch(int)
- Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK.
ON_HOOK
public final static int ON_HOOK
- The Hookswitch is ON_HOOK.
OFF_HOOK
public final static int OFF_HOOK
- The Hookswitch is OFF_HOOK.
setHookSwitch
public abstract void setHookSwitch(int hookSwitchState) throws InvalidArgumentException, PlatformException
- Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK.
- Parameters:
- hookSwtichState - The desired state of the hook switch.
- Throws: InvalidArgumentException
- The provided hookswitch state is not
valid.
- Throws: PlatformException
- A platform-specific exception occurred.
getHookSwitchState
public abstract int getHookSwitchState() throws PlatformException
- Returns the current state of the hookswitch.
- Returns:
- The current state of the hookswitch.
- Throws: PlatformException
- A platform-specific exception occurred.
All Packages Class Hierarchy This Package Previous Next Index