Getting Started
SDK Installation
Full installation guides for every supported platform. Choose your target OS below.
visionOS — Swift Package Manager
Requires Xcode 15 or later and a target deployment of visionOS 1.0+.
- 1Open your project in Xcode
Go to File → Add Package Dependencies…
- 2Enter the package URL
https://github.com/prismar/prism-ar-swift
- 3Select the version
Choose Up to Next Major Version starting from
1.0.0. Click Add Package. - 4Add PrismAR to your target
In the package selection dialog, check PrismAR and link it to your app target.
Verify the installation by importing the module:
Swift
import PrismAR // If this compiles, the SDK is installed correctly.
Android XR — Gradle
Requires Android Studio Hedgehog (2023.1.1) or later, minSdk 26+.
- 1Add the Maven repository
In your root-level
settings.gradle.kts:dependencyResolutionManagement { repositories { google() mavenCentral() maven { url = uri("https://maven.prismar.ai") } } } - 2Add the dependency
In your app-level
build.gradle.kts:dependencies { implementation("ai.prismar:sdk:1.0.0") } - 3Sync your project
Click Sync Now in Android Studio. The SDK will be downloaded automatically.
- 4Add required permissions
In your
AndroidManifest.xml:<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
SDK Versions
| Version | Platform | Status |
|---|---|---|
| 1.0.0 | visionOS, Android XR | Current |
| 0.9.x | visionOS, Android XR | Deprecated |