[{"data":1,"prerenderedAt":1381},["ShallowReactive",2],{"content-query-XIjJki8Y0o":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"body":10,"_type":1375,"_id":1376,"_source":1377,"_file":1378,"_stem":1379,"_extension":1380},"\u002Fdocs\u002Fexpo-sdk","docs",false,"","React Native (Expo) SDK 接入指南","在 React Native (Expo) 项目中集成 @xxinstall\u002Fnative，支持 iOS 和 Android 原生归因。",{"type":11,"children":12,"toc":1360},"root",[13,21,34,39,72,95,100,354,360,666,672,682,695,705,710,720,725,967,977,982,992,997,1002,1354],{"type":14,"tag":15,"props":16,"children":18},"element","h2",{"id":17},"概述",[19],{"type":20,"value":17},"text",{"type":14,"tag":22,"props":23,"children":24},"p",{},[25,32],{"type":14,"tag":26,"props":27,"children":29},"code",{"className":28},[],[30],{"type":20,"value":31},"@xxinstall\u002Fnative",{"type":20,"value":33}," 是 XXinstall 的 React Native 原生归因 SDK，通过 Expo Modules 桥接 iOS（Swift）和 Android（Kotlin）原生实现。核心逻辑在原生层运行。",{"type":14,"tag":15,"props":35,"children":37},{"id":36},"安装",[38],{"type":20,"value":36},{"type":14,"tag":40,"props":41,"children":45},"pre",{"className":42,"code":43,"language":44,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","npm install @xxinstall\u002Fnative@2.0.1\n","bash",[46],{"type":14,"tag":26,"props":47,"children":48},{"__ignoreMap":7},[49],{"type":14,"tag":50,"props":51,"children":54},"span",{"class":52,"line":53},"line",1,[55,61,67],{"type":14,"tag":50,"props":56,"children":58},{"style":57},"--shiki-default:#B392F0",[59],{"type":20,"value":60},"npm",{"type":14,"tag":50,"props":62,"children":64},{"style":63},"--shiki-default:#9ECBFF",[65],{"type":20,"value":66}," install",{"type":14,"tag":50,"props":68,"children":69},{"style":63},[70],{"type":20,"value":71}," @xxinstall\u002Fnative@2.0.1\n",{"type":14,"tag":73,"props":74,"children":75},"blockquote",{},[76],{"type":14,"tag":22,"props":77,"children":78},{},[79,81,87,89],{"type":20,"value":80},"要求 ",{"type":14,"tag":26,"props":82,"children":84},{"className":83},[],[85],{"type":20,"value":86},"expo-modules-core >= 1.0.0",{"type":20,"value":88},"，",{"type":14,"tag":26,"props":90,"children":92},{"className":91},[],[93],{"type":20,"value":94},"react-native >= 0.72.0",{"type":14,"tag":15,"props":96,"children":98},{"id":97},"快速开始",[99],{"type":20,"value":97},{"type":14,"tag":40,"props":101,"children":105},{"className":102,"code":103,"language":104,"meta":7,"style":7},"language-typescript shiki shiki-themes github-dark","import { XXinstall } from '@xxinstall\u002Fnative';\n\n\u002F\u002F 1. 设置 API 地址（全局，只需调用一次）\nXXinstall.setHost('https:\u002F\u002Fyour-api-domain.com');\n\n\u002F\u002F 2. 初始化并获取归因结果（自动采集 23 维指纹 + 设备画像上报）\nconst result = await XXinstall.init({\n  appKey: 'YOUR_APP_KEY',\n  appSecret: 'YOUR_APP_SECRET',\n  debug: true,\n});\n\nconsole.log('归因结果:', result);\n\u002F\u002F { inviteCode, channel, matchType, confidence, scene }\n","typescript",[106],{"type":14,"tag":26,"props":107,"children":108},{"__ignoreMap":7},[109,139,149,159,188,196,205,245,264,282,300,309,317,345],{"type":14,"tag":50,"props":110,"children":111},{"class":52,"line":53},[112,118,124,129,134],{"type":14,"tag":50,"props":113,"children":115},{"style":114},"--shiki-default:#F97583",[116],{"type":20,"value":117},"import",{"type":14,"tag":50,"props":119,"children":121},{"style":120},"--shiki-default:#E1E4E8",[122],{"type":20,"value":123}," { XXinstall } ",{"type":14,"tag":50,"props":125,"children":126},{"style":114},[127],{"type":20,"value":128},"from",{"type":14,"tag":50,"props":130,"children":131},{"style":63},[132],{"type":20,"value":133}," '@xxinstall\u002Fnative'",{"type":14,"tag":50,"props":135,"children":136},{"style":120},[137],{"type":20,"value":138},";\n",{"type":14,"tag":50,"props":140,"children":142},{"class":52,"line":141},2,[143],{"type":14,"tag":50,"props":144,"children":146},{"emptyLinePlaceholder":145},true,[147],{"type":20,"value":148},"\n",{"type":14,"tag":50,"props":150,"children":152},{"class":52,"line":151},3,[153],{"type":14,"tag":50,"props":154,"children":156},{"style":155},"--shiki-default:#6A737D",[157],{"type":20,"value":158},"\u002F\u002F 1. 设置 API 地址（全局，只需调用一次）\n",{"type":14,"tag":50,"props":160,"children":162},{"class":52,"line":161},4,[163,168,173,178,183],{"type":14,"tag":50,"props":164,"children":165},{"style":120},[166],{"type":20,"value":167},"XXinstall.",{"type":14,"tag":50,"props":169,"children":170},{"style":57},[171],{"type":20,"value":172},"setHost",{"type":14,"tag":50,"props":174,"children":175},{"style":120},[176],{"type":20,"value":177},"(",{"type":14,"tag":50,"props":179,"children":180},{"style":63},[181],{"type":20,"value":182},"'https:\u002F\u002Fyour-api-domain.com'",{"type":14,"tag":50,"props":184,"children":185},{"style":120},[186],{"type":20,"value":187},");\n",{"type":14,"tag":50,"props":189,"children":191},{"class":52,"line":190},5,[192],{"type":14,"tag":50,"props":193,"children":194},{"emptyLinePlaceholder":145},[195],{"type":20,"value":148},{"type":14,"tag":50,"props":197,"children":199},{"class":52,"line":198},6,[200],{"type":14,"tag":50,"props":201,"children":202},{"style":155},[203],{"type":20,"value":204},"\u002F\u002F 2. 初始化并获取归因结果（自动采集 23 维指纹 + 设备画像上报）\n",{"type":14,"tag":50,"props":206,"children":208},{"class":52,"line":207},7,[209,214,220,225,230,235,240],{"type":14,"tag":50,"props":210,"children":211},{"style":114},[212],{"type":20,"value":213},"const",{"type":14,"tag":50,"props":215,"children":217},{"style":216},"--shiki-default:#79B8FF",[218],{"type":20,"value":219}," result",{"type":14,"tag":50,"props":221,"children":222},{"style":114},[223],{"type":20,"value":224}," =",{"type":14,"tag":50,"props":226,"children":227},{"style":114},[228],{"type":20,"value":229}," await",{"type":14,"tag":50,"props":231,"children":232},{"style":120},[233],{"type":20,"value":234}," XXinstall.",{"type":14,"tag":50,"props":236,"children":237},{"style":57},[238],{"type":20,"value":239},"init",{"type":14,"tag":50,"props":241,"children":242},{"style":120},[243],{"type":20,"value":244},"({\n",{"type":14,"tag":50,"props":246,"children":248},{"class":52,"line":247},8,[249,254,259],{"type":14,"tag":50,"props":250,"children":251},{"style":120},[252],{"type":20,"value":253},"  appKey: ",{"type":14,"tag":50,"props":255,"children":256},{"style":63},[257],{"type":20,"value":258},"'YOUR_APP_KEY'",{"type":14,"tag":50,"props":260,"children":261},{"style":120},[262],{"type":20,"value":263},",\n",{"type":14,"tag":50,"props":265,"children":267},{"class":52,"line":266},9,[268,273,278],{"type":14,"tag":50,"props":269,"children":270},{"style":120},[271],{"type":20,"value":272},"  appSecret: ",{"type":14,"tag":50,"props":274,"children":275},{"style":63},[276],{"type":20,"value":277},"'YOUR_APP_SECRET'",{"type":14,"tag":50,"props":279,"children":280},{"style":120},[281],{"type":20,"value":263},{"type":14,"tag":50,"props":283,"children":285},{"class":52,"line":284},10,[286,291,296],{"type":14,"tag":50,"props":287,"children":288},{"style":120},[289],{"type":20,"value":290},"  debug: ",{"type":14,"tag":50,"props":292,"children":293},{"style":216},[294],{"type":20,"value":295},"true",{"type":14,"tag":50,"props":297,"children":298},{"style":120},[299],{"type":20,"value":263},{"type":14,"tag":50,"props":301,"children":303},{"class":52,"line":302},11,[304],{"type":14,"tag":50,"props":305,"children":306},{"style":120},[307],{"type":20,"value":308},"});\n",{"type":14,"tag":50,"props":310,"children":312},{"class":52,"line":311},12,[313],{"type":14,"tag":50,"props":314,"children":315},{"emptyLinePlaceholder":145},[316],{"type":20,"value":148},{"type":14,"tag":50,"props":318,"children":320},{"class":52,"line":319},13,[321,326,331,335,340],{"type":14,"tag":50,"props":322,"children":323},{"style":120},[324],{"type":20,"value":325},"console.",{"type":14,"tag":50,"props":327,"children":328},{"style":57},[329],{"type":20,"value":330},"log",{"type":14,"tag":50,"props":332,"children":333},{"style":120},[334],{"type":20,"value":177},{"type":14,"tag":50,"props":336,"children":337},{"style":63},[338],{"type":20,"value":339},"'归因结果:'",{"type":14,"tag":50,"props":341,"children":342},{"style":120},[343],{"type":20,"value":344},", result);\n",{"type":14,"tag":50,"props":346,"children":348},{"class":52,"line":347},14,[349],{"type":14,"tag":50,"props":350,"children":351},{"style":155},[352],{"type":20,"value":353},"\u002F\u002F { inviteCode, channel, matchType, confidence, scene }\n",{"type":14,"tag":355,"props":356,"children":358},"h3",{"id":357},"完整示例",[359],{"type":20,"value":357},{"type":14,"tag":40,"props":361,"children":365},{"className":362,"code":363,"language":364,"meta":7,"style":7},"language-tsx shiki shiki-themes github-dark","import { useEffect, useState } from 'react';\nimport { View, Text } from 'react-native';\nimport { XXinstall } from '@xxinstall\u002Fnative';\n\nXXinstall.setHost('https:\u002F\u002Fyour-api-domain.com');\n\nexport default function App() {\n  const [result, setResult] = useState(null);\n  const [status, setStatus] = useState('初始化中...');\n\n  useEffect(() => {\n    XXinstall.init({\n      appKey: 'YOUR_APP_KEY',\n      appSecret: 'YOUR_APP_SECRET',\n    })\n      .then((attr) => {\n        setResult(attr);\n        setStatus(`归因完成: ${attr.matchType}`);\n      })\n      .catch((err) => setStatus(`归因失败: ${err.message}`));\n  }, []);\n\n  return (\n    \u003CView style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>\n      \u003CText>{status}\u003C\u002FText>\n      {result && (\n        \u003C>\n          \u003CText>邀请码: {result.inviteCode ?? '无'}\u003C\u002FText>\n          \u003CText>渠道: {result.channel}\u003C\u002FText>\n          \u003CText>置信度: {result.confidence}\u003C\u002FText>\n        \u003C\u002F>\n      )}\n    \u003C\u002FView>\n  );\n}\n","tsx",[366],{"type":14,"tag":26,"props":367,"children":368},{"__ignoreMap":7},[369,377,385,393,400,408,415,423,431,439,446,454,462,470,478,487,496,505,514,523,532,541,549,558,567,576,585,594,603,612,621,630,639,648,657],{"type":14,"tag":50,"props":370,"children":371},{"class":52,"line":53},[372],{"type":14,"tag":50,"props":373,"children":374},{},[375],{"type":20,"value":376},"import { useEffect, useState } from 'react';\n",{"type":14,"tag":50,"props":378,"children":379},{"class":52,"line":141},[380],{"type":14,"tag":50,"props":381,"children":382},{},[383],{"type":20,"value":384},"import { View, Text } from 'react-native';\n",{"type":14,"tag":50,"props":386,"children":387},{"class":52,"line":151},[388],{"type":14,"tag":50,"props":389,"children":390},{},[391],{"type":20,"value":392},"import { XXinstall } from '@xxinstall\u002Fnative';\n",{"type":14,"tag":50,"props":394,"children":395},{"class":52,"line":161},[396],{"type":14,"tag":50,"props":397,"children":398},{"emptyLinePlaceholder":145},[399],{"type":20,"value":148},{"type":14,"tag":50,"props":401,"children":402},{"class":52,"line":190},[403],{"type":14,"tag":50,"props":404,"children":405},{},[406],{"type":20,"value":407},"XXinstall.setHost('https:\u002F\u002Fyour-api-domain.com');\n",{"type":14,"tag":50,"props":409,"children":410},{"class":52,"line":198},[411],{"type":14,"tag":50,"props":412,"children":413},{"emptyLinePlaceholder":145},[414],{"type":20,"value":148},{"type":14,"tag":50,"props":416,"children":417},{"class":52,"line":207},[418],{"type":14,"tag":50,"props":419,"children":420},{},[421],{"type":20,"value":422},"export default function App() {\n",{"type":14,"tag":50,"props":424,"children":425},{"class":52,"line":247},[426],{"type":14,"tag":50,"props":427,"children":428},{},[429],{"type":20,"value":430},"  const [result, setResult] = useState(null);\n",{"type":14,"tag":50,"props":432,"children":433},{"class":52,"line":266},[434],{"type":14,"tag":50,"props":435,"children":436},{},[437],{"type":20,"value":438},"  const [status, setStatus] = useState('初始化中...');\n",{"type":14,"tag":50,"props":440,"children":441},{"class":52,"line":284},[442],{"type":14,"tag":50,"props":443,"children":444},{"emptyLinePlaceholder":145},[445],{"type":20,"value":148},{"type":14,"tag":50,"props":447,"children":448},{"class":52,"line":302},[449],{"type":14,"tag":50,"props":450,"children":451},{},[452],{"type":20,"value":453},"  useEffect(() => {\n",{"type":14,"tag":50,"props":455,"children":456},{"class":52,"line":311},[457],{"type":14,"tag":50,"props":458,"children":459},{},[460],{"type":20,"value":461},"    XXinstall.init({\n",{"type":14,"tag":50,"props":463,"children":464},{"class":52,"line":319},[465],{"type":14,"tag":50,"props":466,"children":467},{},[468],{"type":20,"value":469},"      appKey: 'YOUR_APP_KEY',\n",{"type":14,"tag":50,"props":471,"children":472},{"class":52,"line":347},[473],{"type":14,"tag":50,"props":474,"children":475},{},[476],{"type":20,"value":477},"      appSecret: 'YOUR_APP_SECRET',\n",{"type":14,"tag":50,"props":479,"children":481},{"class":52,"line":480},15,[482],{"type":14,"tag":50,"props":483,"children":484},{},[485],{"type":20,"value":486},"    })\n",{"type":14,"tag":50,"props":488,"children":490},{"class":52,"line":489},16,[491],{"type":14,"tag":50,"props":492,"children":493},{},[494],{"type":20,"value":495},"      .then((attr) => {\n",{"type":14,"tag":50,"props":497,"children":499},{"class":52,"line":498},17,[500],{"type":14,"tag":50,"props":501,"children":502},{},[503],{"type":20,"value":504},"        setResult(attr);\n",{"type":14,"tag":50,"props":506,"children":508},{"class":52,"line":507},18,[509],{"type":14,"tag":50,"props":510,"children":511},{},[512],{"type":20,"value":513},"        setStatus(`归因完成: ${attr.matchType}`);\n",{"type":14,"tag":50,"props":515,"children":517},{"class":52,"line":516},19,[518],{"type":14,"tag":50,"props":519,"children":520},{},[521],{"type":20,"value":522},"      })\n",{"type":14,"tag":50,"props":524,"children":526},{"class":52,"line":525},20,[527],{"type":14,"tag":50,"props":528,"children":529},{},[530],{"type":20,"value":531},"      .catch((err) => setStatus(`归因失败: ${err.message}`));\n",{"type":14,"tag":50,"props":533,"children":535},{"class":52,"line":534},21,[536],{"type":14,"tag":50,"props":537,"children":538},{},[539],{"type":20,"value":540},"  }, []);\n",{"type":14,"tag":50,"props":542,"children":544},{"class":52,"line":543},22,[545],{"type":14,"tag":50,"props":546,"children":547},{"emptyLinePlaceholder":145},[548],{"type":20,"value":148},{"type":14,"tag":50,"props":550,"children":552},{"class":52,"line":551},23,[553],{"type":14,"tag":50,"props":554,"children":555},{},[556],{"type":20,"value":557},"  return (\n",{"type":14,"tag":50,"props":559,"children":561},{"class":52,"line":560},24,[562],{"type":14,"tag":50,"props":563,"children":564},{},[565],{"type":20,"value":566},"    \u003CView style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>\n",{"type":14,"tag":50,"props":568,"children":570},{"class":52,"line":569},25,[571],{"type":14,"tag":50,"props":572,"children":573},{},[574],{"type":20,"value":575},"      \u003CText>{status}\u003C\u002FText>\n",{"type":14,"tag":50,"props":577,"children":579},{"class":52,"line":578},26,[580],{"type":14,"tag":50,"props":581,"children":582},{},[583],{"type":20,"value":584},"      {result && (\n",{"type":14,"tag":50,"props":586,"children":588},{"class":52,"line":587},27,[589],{"type":14,"tag":50,"props":590,"children":591},{},[592],{"type":20,"value":593},"        \u003C>\n",{"type":14,"tag":50,"props":595,"children":597},{"class":52,"line":596},28,[598],{"type":14,"tag":50,"props":599,"children":600},{},[601],{"type":20,"value":602},"          \u003CText>邀请码: {result.inviteCode ?? '无'}\u003C\u002FText>\n",{"type":14,"tag":50,"props":604,"children":606},{"class":52,"line":605},29,[607],{"type":14,"tag":50,"props":608,"children":609},{},[610],{"type":20,"value":611},"          \u003CText>渠道: {result.channel}\u003C\u002FText>\n",{"type":14,"tag":50,"props":613,"children":615},{"class":52,"line":614},30,[616],{"type":14,"tag":50,"props":617,"children":618},{},[619],{"type":20,"value":620},"          \u003CText>置信度: {result.confidence}\u003C\u002FText>\n",{"type":14,"tag":50,"props":622,"children":624},{"class":52,"line":623},31,[625],{"type":14,"tag":50,"props":626,"children":627},{},[628],{"type":20,"value":629},"        \u003C\u002F>\n",{"type":14,"tag":50,"props":631,"children":633},{"class":52,"line":632},32,[634],{"type":14,"tag":50,"props":635,"children":636},{},[637],{"type":20,"value":638},"      )}\n",{"type":14,"tag":50,"props":640,"children":642},{"class":52,"line":641},33,[643],{"type":14,"tag":50,"props":644,"children":645},{},[646],{"type":20,"value":647},"    \u003C\u002FView>\n",{"type":14,"tag":50,"props":649,"children":651},{"class":52,"line":650},34,[652],{"type":14,"tag":50,"props":653,"children":654},{},[655],{"type":20,"value":656},"  );\n",{"type":14,"tag":50,"props":658,"children":660},{"class":52,"line":659},35,[661],{"type":14,"tag":50,"props":662,"children":663},{},[664],{"type":20,"value":665},"}\n",{"type":14,"tag":15,"props":667,"children":669},{"id":668},"api",[670],{"type":20,"value":671},"API",{"type":14,"tag":355,"props":673,"children":675},{"id":674},"xxinstallsethosturl-string",[676],{"type":14,"tag":26,"props":677,"children":679},{"className":678},[],[680],{"type":20,"value":681},"XXinstall.setHost(url: string)",{"type":14,"tag":22,"props":683,"children":684},{},[685,687,693],{"type":20,"value":686},"设置 API 服务器地址。必须在 ",{"type":14,"tag":26,"props":688,"children":690},{"className":689},[],[691],{"type":20,"value":692},"init()",{"type":20,"value":694}," 之前调用。",{"type":14,"tag":355,"props":696,"children":698},{"id":697},"xxinstallsetdebugenabled-boolean",[699],{"type":14,"tag":26,"props":700,"children":702},{"className":701},[],[703],{"type":20,"value":704},"XXinstall.setDebug(enabled: boolean)",{"type":14,"tag":22,"props":706,"children":707},{},[708],{"type":20,"value":709},"开启或关闭调试日志输出。",{"type":14,"tag":355,"props":711,"children":713},{"id":712},"xxinstallinitconfig-promiseattributionresult",[714],{"type":14,"tag":26,"props":715,"children":717},{"className":716},[],[718],{"type":20,"value":719},"XXinstall.init(config): Promise\u003CAttributionResult>",{"type":14,"tag":22,"props":721,"children":722},{},[723],{"type":20,"value":724},"初始化 SDK 并执行归因匹配。SDK 内部自动采集 23 个维度的设备指纹（原生 + WebView），并在归因完成后异步上报设备画像。",{"type":14,"tag":726,"props":727,"children":728},"table",{},[729,758],{"type":14,"tag":730,"props":731,"children":732},"thead",{},[733],{"type":14,"tag":734,"props":735,"children":736},"tr",{},[737,743,748,753],{"type":14,"tag":738,"props":739,"children":740},"th",{},[741],{"type":20,"value":742},"参数",{"type":14,"tag":738,"props":744,"children":745},{},[746],{"type":20,"value":747},"类型",{"type":14,"tag":738,"props":749,"children":750},{},[751],{"type":20,"value":752},"必填",{"type":14,"tag":738,"props":754,"children":755},{},[756],{"type":20,"value":757},"说明",{"type":14,"tag":759,"props":760,"children":761},"tbody",{},[762,790,815,841,866,892,917,942],{"type":14,"tag":734,"props":763,"children":764},{},[765,775,780,785],{"type":14,"tag":766,"props":767,"children":768},"td",{},[769],{"type":14,"tag":26,"props":770,"children":772},{"className":771},[],[773],{"type":20,"value":774},"appKey",{"type":14,"tag":766,"props":776,"children":777},{},[778],{"type":20,"value":779},"string",{"type":14,"tag":766,"props":781,"children":782},{},[783],{"type":20,"value":784},"是",{"type":14,"tag":766,"props":786,"children":787},{},[788],{"type":20,"value":789},"应用 Key",{"type":14,"tag":734,"props":791,"children":792},{},[793,802,806,810],{"type":14,"tag":766,"props":794,"children":795},{},[796],{"type":14,"tag":26,"props":797,"children":799},{"className":798},[],[800],{"type":20,"value":801},"appSecret",{"type":14,"tag":766,"props":803,"children":804},{},[805],{"type":20,"value":779},{"type":14,"tag":766,"props":807,"children":808},{},[809],{"type":20,"value":784},{"type":14,"tag":766,"props":811,"children":812},{},[813],{"type":20,"value":814},"应用 Secret",{"type":14,"tag":734,"props":816,"children":817},{},[818,827,831,836],{"type":14,"tag":766,"props":819,"children":820},{},[821],{"type":14,"tag":26,"props":822,"children":824},{"className":823},[],[825],{"type":20,"value":826},"baseUrl",{"type":14,"tag":766,"props":828,"children":829},{},[830],{"type":20,"value":779},{"type":14,"tag":766,"props":832,"children":833},{},[834],{"type":20,"value":835},"否",{"type":14,"tag":766,"props":837,"children":838},{},[839],{"type":20,"value":840},"API 地址（优先于 setHost）",{"type":14,"tag":734,"props":842,"children":843},{},[844,853,857,861],{"type":14,"tag":766,"props":845,"children":846},{},[847],{"type":14,"tag":26,"props":848,"children":850},{"className":849},[],[851],{"type":20,"value":852},"deviceId",{"type":14,"tag":766,"props":854,"children":855},{},[856],{"type":20,"value":779},{"type":14,"tag":766,"props":858,"children":859},{},[860],{"type":20,"value":835},{"type":14,"tag":766,"props":862,"children":863},{},[864],{"type":20,"value":865},"自定义设备 ID",{"type":14,"tag":734,"props":867,"children":868},{},[869,878,883,887],{"type":14,"tag":766,"props":870,"children":871},{},[872],{"type":14,"tag":26,"props":873,"children":875},{"className":874},[],[876],{"type":20,"value":877},"debug",{"type":14,"tag":766,"props":879,"children":880},{},[881],{"type":20,"value":882},"boolean",{"type":14,"tag":766,"props":884,"children":885},{},[886],{"type":20,"value":835},{"type":14,"tag":766,"props":888,"children":889},{},[890],{"type":20,"value":891},"是否输出调试日志（默认 true）",{"type":14,"tag":734,"props":893,"children":894},{},[895,904,908,912],{"type":14,"tag":766,"props":896,"children":897},{},[898],{"type":14,"tag":26,"props":899,"children":901},{"className":900},[],[902],{"type":20,"value":903},"skipCache",{"type":14,"tag":766,"props":905,"children":906},{},[907],{"type":20,"value":882},{"type":14,"tag":766,"props":909,"children":910},{},[911],{"type":20,"value":835},{"type":14,"tag":766,"props":913,"children":914},{},[915],{"type":20,"value":916},"跳过缓存，强制重新归因（默认 false）",{"type":14,"tag":734,"props":918,"children":919},{},[920,929,933,937],{"type":14,"tag":766,"props":921,"children":922},{},[923],{"type":14,"tag":26,"props":924,"children":926},{"className":925},[],[927],{"type":20,"value":928},"skipClipboard",{"type":14,"tag":766,"props":930,"children":931},{},[932],{"type":20,"value":882},{"type":14,"tag":766,"props":934,"children":935},{},[936],{"type":20,"value":835},{"type":14,"tag":766,"props":938,"children":939},{},[940],{"type":20,"value":941},"跳过剪贴板读取（默认 false）",{"type":14,"tag":734,"props":943,"children":944},{},[945,954,958,962],{"type":14,"tag":766,"props":946,"children":947},{},[948],{"type":14,"tag":26,"props":949,"children":951},{"className":950},[],[952],{"type":20,"value":953},"skipWebView",{"type":14,"tag":766,"props":955,"children":956},{},[957],{"type":20,"value":882},{"type":14,"tag":766,"props":959,"children":960},{},[961],{"type":20,"value":835},{"type":14,"tag":766,"props":963,"children":964},{},[965],{"type":20,"value":966},"跳过内置 WebView 指纹采集（默认 false）",{"type":14,"tag":355,"props":968,"children":970},{"id":969},"xxinstallgetattribution-promiseattributionresult-null",[971],{"type":14,"tag":26,"props":972,"children":974},{"className":973},[],[975],{"type":20,"value":976},"XXinstall.getAttribution(): Promise\u003CAttributionResult | null>",{"type":14,"tag":22,"props":978,"children":979},{},[980],{"type":20,"value":981},"获取缓存的归因结果（不发起网络请求）。",{"type":14,"tag":355,"props":983,"children":985},{"id":984},"xxinstallclearcache-promisevoid",[986],{"type":14,"tag":26,"props":987,"children":989},{"className":988},[],[990],{"type":20,"value":991},"XXinstall.clearCache(): Promise\u003Cvoid>",{"type":14,"tag":22,"props":993,"children":994},{},[995],{"type":20,"value":996},"清除本地缓存的归因结果。",{"type":14,"tag":355,"props":998,"children":1000},{"id":999},"类型定义",[1001],{"type":20,"value":999},{"type":14,"tag":40,"props":1003,"children":1005},{"className":102,"code":1004,"language":104,"meta":7,"style":7},"interface AttributionResult {\n  inviteCode: string | null;\n  channel: string;\n  matchType: 'clipboard' | 'fingerprint' | 'ipua' | 'direct' | 'none';\n  confidence: number;\n  scene: string;\n}\n\ninterface DeviceProfile {\n  buildFingerprint: string;\n  installedAppsHash: string;\n  sensorListHash: string;\n  brand: string;\n  model: string;\n  [key: string]: any;\n}\n",[1006],{"type":14,"tag":26,"props":1007,"children":1008},{"__ignoreMap":7},[1009,1027,1060,1080,1137,1158,1178,1185,1192,1208,1228,1248,1268,1288,1308,1347],{"type":14,"tag":50,"props":1010,"children":1011},{"class":52,"line":53},[1012,1017,1022],{"type":14,"tag":50,"props":1013,"children":1014},{"style":114},[1015],{"type":20,"value":1016},"interface",{"type":14,"tag":50,"props":1018,"children":1019},{"style":57},[1020],{"type":20,"value":1021}," AttributionResult",{"type":14,"tag":50,"props":1023,"children":1024},{"style":120},[1025],{"type":20,"value":1026}," {\n",{"type":14,"tag":50,"props":1028,"children":1029},{"class":52,"line":141},[1030,1036,1041,1046,1051,1056],{"type":14,"tag":50,"props":1031,"children":1033},{"style":1032},"--shiki-default:#FFAB70",[1034],{"type":20,"value":1035},"  inviteCode",{"type":14,"tag":50,"props":1037,"children":1038},{"style":114},[1039],{"type":20,"value":1040},":",{"type":14,"tag":50,"props":1042,"children":1043},{"style":216},[1044],{"type":20,"value":1045}," string",{"type":14,"tag":50,"props":1047,"children":1048},{"style":114},[1049],{"type":20,"value":1050}," |",{"type":14,"tag":50,"props":1052,"children":1053},{"style":216},[1054],{"type":20,"value":1055}," null",{"type":14,"tag":50,"props":1057,"children":1058},{"style":120},[1059],{"type":20,"value":138},{"type":14,"tag":50,"props":1061,"children":1062},{"class":52,"line":151},[1063,1068,1072,1076],{"type":14,"tag":50,"props":1064,"children":1065},{"style":1032},[1066],{"type":20,"value":1067},"  channel",{"type":14,"tag":50,"props":1069,"children":1070},{"style":114},[1071],{"type":20,"value":1040},{"type":14,"tag":50,"props":1073,"children":1074},{"style":216},[1075],{"type":20,"value":1045},{"type":14,"tag":50,"props":1077,"children":1078},{"style":120},[1079],{"type":20,"value":138},{"type":14,"tag":50,"props":1081,"children":1082},{"class":52,"line":161},[1083,1088,1092,1097,1101,1106,1110,1115,1119,1124,1128,1133],{"type":14,"tag":50,"props":1084,"children":1085},{"style":1032},[1086],{"type":20,"value":1087},"  matchType",{"type":14,"tag":50,"props":1089,"children":1090},{"style":114},[1091],{"type":20,"value":1040},{"type":14,"tag":50,"props":1093,"children":1094},{"style":63},[1095],{"type":20,"value":1096}," 'clipboard'",{"type":14,"tag":50,"props":1098,"children":1099},{"style":114},[1100],{"type":20,"value":1050},{"type":14,"tag":50,"props":1102,"children":1103},{"style":63},[1104],{"type":20,"value":1105}," 'fingerprint'",{"type":14,"tag":50,"props":1107,"children":1108},{"style":114},[1109],{"type":20,"value":1050},{"type":14,"tag":50,"props":1111,"children":1112},{"style":63},[1113],{"type":20,"value":1114}," 'ipua'",{"type":14,"tag":50,"props":1116,"children":1117},{"style":114},[1118],{"type":20,"value":1050},{"type":14,"tag":50,"props":1120,"children":1121},{"style":63},[1122],{"type":20,"value":1123}," 'direct'",{"type":14,"tag":50,"props":1125,"children":1126},{"style":114},[1127],{"type":20,"value":1050},{"type":14,"tag":50,"props":1129,"children":1130},{"style":63},[1131],{"type":20,"value":1132}," 'none'",{"type":14,"tag":50,"props":1134,"children":1135},{"style":120},[1136],{"type":20,"value":138},{"type":14,"tag":50,"props":1138,"children":1139},{"class":52,"line":190},[1140,1145,1149,1154],{"type":14,"tag":50,"props":1141,"children":1142},{"style":1032},[1143],{"type":20,"value":1144},"  confidence",{"type":14,"tag":50,"props":1146,"children":1147},{"style":114},[1148],{"type":20,"value":1040},{"type":14,"tag":50,"props":1150,"children":1151},{"style":216},[1152],{"type":20,"value":1153}," number",{"type":14,"tag":50,"props":1155,"children":1156},{"style":120},[1157],{"type":20,"value":138},{"type":14,"tag":50,"props":1159,"children":1160},{"class":52,"line":198},[1161,1166,1170,1174],{"type":14,"tag":50,"props":1162,"children":1163},{"style":1032},[1164],{"type":20,"value":1165},"  scene",{"type":14,"tag":50,"props":1167,"children":1168},{"style":114},[1169],{"type":20,"value":1040},{"type":14,"tag":50,"props":1171,"children":1172},{"style":216},[1173],{"type":20,"value":1045},{"type":14,"tag":50,"props":1175,"children":1176},{"style":120},[1177],{"type":20,"value":138},{"type":14,"tag":50,"props":1179,"children":1180},{"class":52,"line":207},[1181],{"type":14,"tag":50,"props":1182,"children":1183},{"style":120},[1184],{"type":20,"value":665},{"type":14,"tag":50,"props":1186,"children":1187},{"class":52,"line":247},[1188],{"type":14,"tag":50,"props":1189,"children":1190},{"emptyLinePlaceholder":145},[1191],{"type":20,"value":148},{"type":14,"tag":50,"props":1193,"children":1194},{"class":52,"line":266},[1195,1199,1204],{"type":14,"tag":50,"props":1196,"children":1197},{"style":114},[1198],{"type":20,"value":1016},{"type":14,"tag":50,"props":1200,"children":1201},{"style":57},[1202],{"type":20,"value":1203}," DeviceProfile",{"type":14,"tag":50,"props":1205,"children":1206},{"style":120},[1207],{"type":20,"value":1026},{"type":14,"tag":50,"props":1209,"children":1210},{"class":52,"line":284},[1211,1216,1220,1224],{"type":14,"tag":50,"props":1212,"children":1213},{"style":1032},[1214],{"type":20,"value":1215},"  buildFingerprint",{"type":14,"tag":50,"props":1217,"children":1218},{"style":114},[1219],{"type":20,"value":1040},{"type":14,"tag":50,"props":1221,"children":1222},{"style":216},[1223],{"type":20,"value":1045},{"type":14,"tag":50,"props":1225,"children":1226},{"style":120},[1227],{"type":20,"value":138},{"type":14,"tag":50,"props":1229,"children":1230},{"class":52,"line":302},[1231,1236,1240,1244],{"type":14,"tag":50,"props":1232,"children":1233},{"style":1032},[1234],{"type":20,"value":1235},"  installedAppsHash",{"type":14,"tag":50,"props":1237,"children":1238},{"style":114},[1239],{"type":20,"value":1040},{"type":14,"tag":50,"props":1241,"children":1242},{"style":216},[1243],{"type":20,"value":1045},{"type":14,"tag":50,"props":1245,"children":1246},{"style":120},[1247],{"type":20,"value":138},{"type":14,"tag":50,"props":1249,"children":1250},{"class":52,"line":311},[1251,1256,1260,1264],{"type":14,"tag":50,"props":1252,"children":1253},{"style":1032},[1254],{"type":20,"value":1255},"  sensorListHash",{"type":14,"tag":50,"props":1257,"children":1258},{"style":114},[1259],{"type":20,"value":1040},{"type":14,"tag":50,"props":1261,"children":1262},{"style":216},[1263],{"type":20,"value":1045},{"type":14,"tag":50,"props":1265,"children":1266},{"style":120},[1267],{"type":20,"value":138},{"type":14,"tag":50,"props":1269,"children":1270},{"class":52,"line":319},[1271,1276,1280,1284],{"type":14,"tag":50,"props":1272,"children":1273},{"style":1032},[1274],{"type":20,"value":1275},"  brand",{"type":14,"tag":50,"props":1277,"children":1278},{"style":114},[1279],{"type":20,"value":1040},{"type":14,"tag":50,"props":1281,"children":1282},{"style":216},[1283],{"type":20,"value":1045},{"type":14,"tag":50,"props":1285,"children":1286},{"style":120},[1287],{"type":20,"value":138},{"type":14,"tag":50,"props":1289,"children":1290},{"class":52,"line":347},[1291,1296,1300,1304],{"type":14,"tag":50,"props":1292,"children":1293},{"style":1032},[1294],{"type":20,"value":1295},"  model",{"type":14,"tag":50,"props":1297,"children":1298},{"style":114},[1299],{"type":20,"value":1040},{"type":14,"tag":50,"props":1301,"children":1302},{"style":216},[1303],{"type":20,"value":1045},{"type":14,"tag":50,"props":1305,"children":1306},{"style":120},[1307],{"type":20,"value":138},{"type":14,"tag":50,"props":1309,"children":1310},{"class":52,"line":480},[1311,1316,1321,1325,1329,1334,1338,1343],{"type":14,"tag":50,"props":1312,"children":1313},{"style":120},[1314],{"type":20,"value":1315},"  [",{"type":14,"tag":50,"props":1317,"children":1318},{"style":1032},[1319],{"type":20,"value":1320},"key",{"type":14,"tag":50,"props":1322,"children":1323},{"style":114},[1324],{"type":20,"value":1040},{"type":14,"tag":50,"props":1326,"children":1327},{"style":216},[1328],{"type":20,"value":1045},{"type":14,"tag":50,"props":1330,"children":1331},{"style":120},[1332],{"type":20,"value":1333},"]",{"type":14,"tag":50,"props":1335,"children":1336},{"style":114},[1337],{"type":20,"value":1040},{"type":14,"tag":50,"props":1339,"children":1340},{"style":216},[1341],{"type":20,"value":1342}," any",{"type":14,"tag":50,"props":1344,"children":1345},{"style":120},[1346],{"type":20,"value":138},{"type":14,"tag":50,"props":1348,"children":1349},{"class":52,"line":489},[1350],{"type":14,"tag":50,"props":1351,"children":1352},{"style":120},[1353],{"type":20,"value":665},{"type":14,"tag":1355,"props":1356,"children":1357},"style",{},[1358],{"type":20,"value":1359},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":141,"depth":141,"links":1361},[1362,1363,1364,1367],{"id":17,"depth":141,"text":17},{"id":36,"depth":141,"text":36},{"id":97,"depth":141,"text":97,"children":1365},[1366],{"id":357,"depth":151,"text":357},{"id":668,"depth":141,"text":671,"children":1368},[1369,1370,1371,1372,1373,1374],{"id":674,"depth":151,"text":681},{"id":697,"depth":151,"text":704},{"id":712,"depth":151,"text":719},{"id":969,"depth":151,"text":976},{"id":984,"depth":151,"text":991},{"id":999,"depth":151,"text":999},"markdown","content:docs:expo-sdk.md","content","docs\u002Fexpo-sdk.md","docs\u002Fexpo-sdk","md",1784877317612]