Package 

Interface Phone


  • 
    public interface Phone
    
                        

    The interface to work with telephony.

    Required: Started AdbServer 1. Download a file "kaspresso/artifacts/adbserver-desktop.jar" 2. Start AdbServer => input in cmd "java jar path_to_file/adbserver-desktop.jar" Methods demanding to use AdbServer in the default implementation of this interface are marked. But nobody can't deprecate you to write implementation that doesn't require AdbServer.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit emulateCall(String number) Emulates incoming call.
      abstract Unit cancelCall(String number) Cancels incoming call.
      abstract Unit receiveSms(String number, String text) Emulates receiving an SMS from number.
      • Methods inherited from class com.kaspersky.kaspresso.device.phone.Phone

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • emulateCall

         abstract Unit emulateCall(String number)

        Emulates incoming call.

        Required Permissions: INTERNET

      • cancelCall

         abstract Unit cancelCall(String number)

        Cancels incoming call.

        Required Permissions: INTERNET

      • receiveSms

         abstract Unit receiveSms(String number, String text)

        Emulates receiving an SMS from number.

        Required Permissions: INTERNET