public class

CiscoTelephonyManager.CiscoTelephonyManagerDevice

extends Object
java.lang.Object
   ↳ com.cisco.telephony.CiscoTelephonyManager.CiscoTelephonyManagerDevice

Class Overview

CiscoTelephonyManagerDevice provides device services. The services include creating calls and invoking device specific features.

Summary

Nested Classes
class CiscoTelephonyManager.CiscoTelephonyManagerDevice.CiscoTelephonyManagerDeviceInvalidObject Exception returned from an Invalid Device  
Protected Constructors
CiscoTelephonyManager.CiscoTelephonyManagerDevice(ICCDevice iccDevice)
Public Methods
void addCallListener(CiscoTelephonyManager.CiscoTelephonyManagerCallListener listener)
Add call event listener.
void addLineListener(CiscoTelephonyManager.CiscoTelephonyManagerLineListener listener)
Add line event listener.
void addListener(CiscoTelephonyManager.CiscoTelephonyManagerDeviceListener listener)
Add device event listener.
CiscoTelephonyManager.CiscoTelephonyManagerCall createCall()
Creates a new call and returns newly created call.
CiscoTelephonyManager.CiscoTelephonyManagerDeviceInfo getDeviceInfo()
Returns device information.
void removeCallListener(CiscoTelephonyManager.CiscoTelephonyManagerCallListener listener)
Remove call listener handler added by addCallListener().
void removeLineListener(CiscoTelephonyManager.CiscoTelephonyManagerLineListener listener)
Remove line listener handler added by addLineListener().
void removeListener(CiscoTelephonyManager.CiscoTelephonyManagerDeviceListener listener)
Remove device event listener added by addListener().
void toggleDNDState()
Toggles the DND status of the device.
void togglePrivacy()
Toggles the privacy status of the device.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected CiscoTelephonyManager.CiscoTelephonyManagerDevice (ICCDevice iccDevice)

Public Methods

public void addCallListener (CiscoTelephonyManager.CiscoTelephonyManagerCallListener listener)

Add call event listener. Adding listener using this method will notify all call events for all calls. Requires the permission "cisco.telephony.permission.CALL_INFO_PERMISSION".

Parameters
listener to receive all call events.

public void addLineListener (CiscoTelephonyManager.CiscoTelephonyManagerLineListener listener)

Add line event listener. Adding listener using his method will notify all the line events. Requires the permissoin "cisco.telephony.permission.LINE_INFO_PERMISSION".

Parameters
listener for line events

public void addListener (CiscoTelephonyManager.CiscoTelephonyManagerDeviceListener listener)

Add device event listener. Adding listener using this method will notify all the device events. Requires the permission "cisco.telephony.permission.DEVICE_INFO_PERMISSION".

Parameters
listener for device events.

public CiscoTelephonyManager.CiscoTelephonyManagerCall createCall ()

Creates a new call and returns newly created call. This is the first method to invoke to create an outgoing call. Note: call is created in the memory only. Client must invoke further methods to dial or originate actual call. Requires the permission "cisco.telephony.permission.DEVICE_PERMISSION".

Returns
  • CiscoTelephonyManagerCall interface for newly created call.

public CiscoTelephonyManager.CiscoTelephonyManagerDeviceInfo getDeviceInfo ()

Returns device information.

Returns
  • CiscoTelephonyManagerDeviceInfo device information interface. Requires the permission "cisco.telephony.permission.DEVICE_INFO_PERMISSION".

public void removeCallListener (CiscoTelephonyManager.CiscoTelephonyManagerCallListener listener)

Remove call listener handler added by addCallListener().

Parameters
listener to be removed.

public void removeLineListener (CiscoTelephonyManager.CiscoTelephonyManagerLineListener listener)

Remove line listener handler added by addLineListener().

Parameters
listener to be removed

public void removeListener (CiscoTelephonyManager.CiscoTelephonyManagerDeviceListener listener)

Remove device event listener added by addListener().

Parameters
listener to be removed

public void toggleDNDState ()

Toggles the DND status of the device. This will result in a device event DND_STATE_CHANGED with the new state of DND.

public void togglePrivacy ()

Toggles the privacy status of the device. The user can toggle the privacy state of shared directory numbers configured on the device. When the privacy feature is active, the sharedline partners will not see the calls from this phone. This will result in a device event PRIVACY_CHANGED with the new state of privacy.