打電話

weixin_34119545發表於2019-01-08

打電話

引用單元

Androidapi.JNI.Telephony, Androidapi.JNIBridge, Androidapi.JNI.GraphicsContentViewText,
Androidapi.Helpers,Androidapi.JNI.JavaTypes,FMX.platform, FMX.PhoneDialer, FMX.platform.Android

打電話

procedure Tfcall.Button1Click(Sender: TObject);
var
phone: IFMXPhoneDialerService;
begin
if TPlatformServices.Current.SupportsPlatformService(IFMXPhoneDialerService, IInterface(phone)) then
begin
phone.Call(Edit1.Text);
//監聽電話請用phone.OnCallStateChanged事件
end;
end;

相關文章