-
public interface PhoneThe 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 UnitemulateCall(String number)Emulates incoming call. abstract UnitcancelCall(String number)Cancels incoming call. abstract UnitreceiveSms(String number, String text)Emulates receiving an SMS from number. -
-
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
-
-
-
-