Would you like to know if it is possible to make calls with a mobile application built in delphi?
If it is possible to show an example of how to implement.
Would you like to know if it is possible to make calls with a mobile application built in delphi?
If it is possible to show an example of how to implement.
Yes applications built in delphi allow us to access api's as PhoneDialer
to make calls for example. But there are a number of other libraries that allow us to perform other operations on the device.
A very simple example of how to implement this feature in an application would look like this:
Before we start implementing the code that will make the call, we must add the uses clause of the following Namespaces: FMX.PhoneDialer, FMX.Platform.
Now just implement the following code, which is very simple to build.
var
chamada: IFMXPhoneDialerService;
begin
TPlatformServices.Current.SuportsPlatformService(IFMXPhoneDialerService, IInterface(chamada));
if Assigned(chamada) then
chamada.Call('numero a ser chamado');
end;