delphi IOS取设备唯一值


本文整理自网络,侵删。

 function IOSGetDeviceID: string;
var
  LDevice: UIDevice;
begin
  Result := '';
  LDevice := TUIDevice.Wrap(TUIDevice.OCClass.currentDevice);
  if LDevice <> nil then
    Result := NSStrToStr(LDevice.identifierForVendor.UUIDString);
end;

这个函数,在FMX.PushNotification.iOS单元中。

我也没用过,请教Aone,他说这个返回唯一值,但重装app后会变化。

真是麻烦事!

相关阅读 >>

Delphi winapi: gettickcount - 获取系统已启动的时间

Delphi 颜色表

Delphi 只用一条语句就能使tbitmap反色

Delphi xe 关闭android应用

Delphi10.3构造一个json数据的第二种方法,并格式化输出

Delphi2007-Delphi2010 程序不出现在任务栏的方法

Delphi posansi

Delphi实现文件下载urldownloadtofile

Delphi comparedatetime、comparedate、comparetime、samedatetime、samedate、sametime �c 对比时间的函数

Delphi 判断 文本文件 utf-8 bom头

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...