本文整理自网络,侵删。
//引用单元:FMX.PlatForm, FMX.PhoneDialer
procedure TForm1.Call(ANum: String);
var
PhoneDialerService: IFMXPhoneDialerService;
begin
if TPlatformServices.Current.SupportsPlatformService(IFMXPhoneDialerService,
IInterface(PhoneDialerService)) then
if ANum <> '' then
PhoneDialerService.Call(ANum);
end;
这里使用的SupportsPlatFormService会返回PhoneDialerService实例!
相关阅读 >>
Delphi sql server 数据库转换为 access 数据库
Delphi xe7 /xe7 update1/xe8 安装失败 只能装到27%
更多相关阅读请进入《Delphi》频道 >>