hz-platform-sdk

指导在 Meta Quest 和 Horizon OS 的 Android/Kotlin 应用中集成 Horizon Platform SDK。内容涉及成就、应用内购买 (IAP)、用户、排行榜、在线状态、通知、滥用举报、权限、资源文件、应用生命周期、用户同意、设备完整性、语言包、用户年龄分类以及评分和评论功能,包含 17 个公开平台 SDK 软件包的设置、初始化、API 使用、数据类型、错误处理及最佳实践。

仓库最近推送
GitHub Stars
269
Forks
25
Issues / PRs
8

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hz-platform-sdk":https://skillpi.com/zh/skills/deepskill-431960bc717ae964a213c2699f451c77e66be27c7da1011105bff316f36c28bb。安装前核对上游来源和版本:https://github.com/meta-quest/agentic-tools。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

指导在 Meta Quest 和 Horizon OS 的 Android/Kotlin 应用中集成 Horizon Platform SDK。内容涉及成就、应用内购买 (IAP)、用户、排行榜、在线状态、通知、滥用举报、权限、资源文件、应用生命周期、用户同意、设备完整性、语言包、用户年龄分类以及评分和评论功能,包含 17 个公开平台 SDK 软件包的设置、初始化、API 使用、数据类型、错误处理及最佳实践。

0 下载

介绍来源: third_party · meta-quest · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: hz-platform-sdk
license: Apache-2.0
description: "Guides integration of the Horizon Platform SDK for Meta VR and Horizon OS Android/Kotlin apps — achievements, IAP, users, leaderboards, presence, notifications, abuse reporting, entitlements, asset files, application lifecycle, consent, device integrity, language packs, user age categories, and rate and review. Covers setup, initialization, API usage, data types, error handling, and best practices for all 17 public platform SDK packages. Build paths: Standard Android and Meta Spatial SDK; use hz-psdk-integration for guided integration, hz-unity-platform-sdk for Unity/C#, and hz-quest-verify-first if the path is unclear."

Horizon Platform SDK - Android/Kotlin Integration Guide

This is the API-reference skill for the Standard Android and Meta Spatial SDK Android/Kotlin build paths. For a guided codebase-analysis and integration workflow, use hz-psdk-integration. For Unity/C#, use hz-unity-platform-sdk instead.

When to Use

Use this skill when a developer:

  • Wants to integrate any Horizon Platform SDK feature in a Meta VR Android/Kotlin application
  • Asks about setup, initialization, or dependencies for the SDK
  • Needs help with a specific public platform API (achievements, IAP, users, etc.)
  • Is troubleshooting errors or status codes from any SDK package
  • Asks about HorizonServiceConnection, entitlements, or HzPlatformService

Quick Start

Available APIs

Feature Reference Description
Abuse Report abuse-report Listen for report button events in the system panel
Achievements achievements Unlock, track progress, and query simple/count/bitfield achievements
Application application Get app version, launch other apps, manage self-update downloads
Application Lifecycle application-lifecycle Detect launch type, handle deeplinks, log deeplink results
Asset File asset-file List, download, cancel, and delete downloadable asset files (DLC)
Consent consent Check and launch user consent flows
Device Application Integrity device-application-integrity Verify device and app integrity tokens
Entitlements entitlements Verify app purchase legitimacy and user authorization
Group Presence group-presence Set/clear presence, manage sessions, send invites, launch panels
In-App Purchases (IAP) iap Retrieve products, purchase history, checkout flow, consume purchases
Language Pack language-pack Get/set language packs, track localization downloads
Leaderboards leaderboards Retrieve leaderboard info, fetch/write entries with filtering
Notifications notifications Send device notifications with actions and icons
Rate and Review rate-and-review Check eligibility and launch the rating/review UI
Rich Presence rich-presence Set/clear rich presence status and destinations (deprecated; prefer group-presence)
User Age Category user-age-category Query user age group and report age categories
Users users Retrieve user profiles, friends, access tokens, identity verification

How to Use

  1. First, read references/common-setup.md for shared setup instructions, initialization code, and common status codes that apply to all APIs.
  2. Then, read the specific reference file for the API you need (e.g., references/iap.md for in-app purchases).
  3. For exact signatures, query the API index instead of guessing: metavr docs api-search "<feature> <operation>", then metavr docs api-details <entry> for the full entry.

Each reference file contains only the package-specific content: API operations, data types, examples, and package-specific notes. The common setup and error codes are centralized in common-setup.md to avoid duplication.

版本历史

  1. v1.8.0 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.3...v1.8.0

  2. v1.2.3 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/compare/v1.2.1...v1.2.3

  3. v1.2.1 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/meta-quest/agentic-tools/commits/v1.2.1

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • Horizon Platform SDK 集成指南覆盖 17 个核心 API,为 Meta VR Android/Kotlin 开发者提供全面参考
  • 内容结构清晰,区分通用设置与具体 API 实现,有效避免重复
触发精准95/100

亮点

  • 触发词覆盖完整,包括集成、设置、API 使用、错误排查等多种场景
  • 边界清晰,通过 build path 分流引导用户选择正确技能
结构规范90/100

亮点

  • 执行流程分步明确:先读 common-setup.md,再读具体 API 文件
  • 提供快速入门链接和 Maven 仓库地址,便于开发者快速上手
执行可靠75/100

待提升项

  • 缺少显式异常处理示例和确认机制说明 原报告严重程度:轻微

    Skill 提及错误处理和状态码,但未在具体 API 参考文件中展示常见异常处理代码示例,也未对不可逆操作(如购买、删除资源)说明用户确认机制

    改进建议:建议在具体 API 参考文件中补充常见异常处理代码示例,并对不可逆操作(如购买、删除资源)增加用户确认机制说明

亮点

  • 工具来源明确,提供官方文档链接和 Maven 仓库地址
  • 提及错误处理与状态码,具备基本的可靠性保障
证据可验 (前四项均值)86/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • central.sonatype.com
  • developers.meta.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。