菜单

获取设备 distinct_id

获取当前设备的 distinct_id

方法示例

export function fetchDistinctId():string;

//鸿蒙平台
export function fetchDistinctIdWithCallback(
  callback: (str: string) => void
): void

 

示例代码

let distinctId = SolarEngine.fetchDistinctId();

//鸿蒙平台

SolarEngine.fetchDistinctIdWithCallback((res) => {
   log('distinctId: ' + res);
 });
 
 
最近修改: 2026-09-08Powered by