sample-app-guide

Guide iOS developers through Meta Wearables DAT camera streaming and photo capture.

506|113|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/facebook/meta-wearables-dat-ios --skill sample-app-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sample-app-guide
Source: https://github.com/facebook/meta-wearables-dat-ios/tree/main/plugins/mwdat-ios/skills/sample-app-guide
Command: npx skills add https://github.com/facebook/meta-wearables-dat-ios --skill sample-app-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need a clear, end-to-end path to integrate Meta Wearables Device Access Toolkit (DAT) on iOS for streaming and photo capture without guessing which modules to wire together or how the app flow should look.

Core Features & Use Cases

  • Project setup guidance: Establish a new SwiftUI project, add DAT SDK modules, and configure the required iOS app settings.
  • App architecture patterns: Separate concerns with ViewModels for registration/device management and streaming/capture.
  • Streaming + photo capture workflow: Create a device session, start a stream with defined configuration, listen for frame and photo updates, and trigger photo capture.
  • Mock device testing: Enable MockDeviceKit to develop and test video feed and capture behavior without requiring physical glasses.

Example use case: Build a hands-free “live preview with snapshot” experience where users can start streaming and tap a button to capture a JPEG photo while the app shows the latest preview frame.

Quick Start

Use the guide to set up a new SwiftUI DAT app, initialize the SDK in your app entry point, then wire streaming and photo capture using the provided ViewModel structure.

Frequently Asked Questions about sample-app-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement camera streaming and photo capture in an iOS SwiftUI app?

You implement camera streaming and photo capture in iOS by using the Meta Wearables Device Access Toolkit to create a device session, configure the stream, listen for frame updates, and trigger photo capture using provided ViewModel architecture patterns.

What is the Meta Wearables Device Access Toolkit used for on iOS?

The Meta Wearables Device Access Toolkit is used on iOS to establish a device session for video streaming and photo capture. It provides modules like MWDATCore and MWDATCamera to manage the stream lifecycle from initialization to capture.

Can I test my iOS camera streaming app without physical smart glasses?

Yes, you can test your iOS camera streaming app without physical glasses by enabling the MockDeviceKit module. This allows you to develop and test video feed and photo capture behavior using a mock device session.

How do I set up an iOS project for Meta Wearables DAT integration?

You set up an iOS project for DAT integration by creating a new SwiftUI project, adding the required DAT SDK modules, and configuring the necessary iOS app settings. You then initialize the SDK in your app entry point before wiring streaming workflows.

Do I need to handle asynchronous stream states for iOS camera streaming?

Yes, you need to handle asynchronous stream states and publisher handling for iOS camera streaming. The guide requires managing the stream lifecycle asynchronously, from initialization through live frame updates and photo capture.