Class Dial


  • public final class Dial
    extends java.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 Android and iOS.
    Since:
    TotalCross 1.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Dial.Listener
      Deprecated. 
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Dial.Listener listener
      The listener that will receive status change messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dial()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void hangup()
      Deprecated. 
      static void number​(java.lang.String number)
      Dials the given number.
      • Methods inherited from class java.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 the currently supported platforms.
    • Constructor Detail

      • Dial

        public Dial()
    • Method Detail

      • number

        public static void number​(java.lang.String number)
                           throws IOException
        Dials the given number.
        Throws:
        IOException
      • hangup

        @Deprecated
        public static void hangup()
        Deprecated.
        Hangs up a running call. Does not work on the currently supported platforms.