beautypg.com

Getdefaultdialer, Setdialerlistener – Motorola HANDSET C381P User Manual

Page 57

background image

12
Telephony
API

57

void

sendExtNo(String extNumber)

send extension number.

void

setDialerListener(DialerListener listener)

Registers a DialerListener object.

void

startCall(String telenumber)

start a phone call using given telephone number.

void

startCall(String teleNumber, String extNo)

start a phone call using given telephone number and extension number.

Table 16 Method Summary

The following methods are inherited from java.lang.object:

• equals
• getClass
• hashCode
• notify
• notifyAll
• toString
• wait

getDefaultDialer

public static Dialer getDefaultDialer()

Get a Dialer instance.

setDialerListener

public void setDialerListener(DialerListener listener)
Registers a DialerListener object.
The platform will notify this listener object when a phone event has been received to this
Dialer object.
There can be at most one listener object registered for a Dialer object at any given point in
time. Setting a new listener will implicitly de-register the possibly previously set listener.
Passing null as the parameter de-registers the currently registered listener, if any.
Parameters:

listener

- DialerListener

object to be registered. If null, the possibly currently

registered listener will be de-registered and will not receive phone call event.