totalcross.phone
Class Dial

totalcross.lang.Object
  extended by totalcross.phone.Dial

public final class Dial
extends totalcross.lang.Object

Used to dial a number in a smartphone. A single listener can receive messages from the system informing the current status. Currently works on Windows CE, Blackberry and Android.

Since:
TotalCross 1.0

Nested Class Summary
static interface Dial.Listener
          A dial listener that will receive events informing the actual status of the dialing.
 
Field Summary
static Dial.Listener listener
          The listener that will receive status change messages.
 
Constructor Summary
Dial()
           
 
Method Summary
static void hangup()
          Hangs up a running call.
static void number(String number)
          Dials the given number.
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

public static Dial.Listener listener
The listener that will receive status change messages. Does not work on Android.

Constructor Detail

Dial

public Dial()
Method Detail

number

public static void number(String number)
                   throws IOException
Dials the given number.

Throws:
IOException

hangup

public static void hangup()
Hangs up a running call. Does not work on Android.