Skip to content

facebook/meta-wearables-dat-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Meta Wearables Device Access Toolkit for Android

Maven Docs

The Meta Wearables Device Access Toolkit enables developers to utilize Meta's AI glasses to build hands-free wearable experiences into their mobile applications. By integrating this SDK, developers can reliably connect to Meta's AI glasses and leverage capabilities like video streaming and photo capture.

The Wearables Device Access Toolkit is in developer preview. Developers can access our SDK and documentation, test on supported AI glasses, and create organizations and release channels to share with test users.

Documentation & Community

Find our full developer documentation on the Wearables Developer Center.

You can find an overview of the Wearables Developer Center here. Create an account to stay informed of all updates, report bugs and register your organization. Set up a project and release channel to share your integration with test users.

For help, discussion about best practices or to suggest feature ideas visit our discussions forum.

See the changelog for the latest updates.

Including the SDK in your project

You can add the SDK to your Gradle project with these two steps:

1. Adding the repository definition to build.gradle.kts or settings.gradle.kts

repositories {
    maven {
        url = uri("https://maven.pkg.github.com/facebook/meta-wearables-dat-android")
        credentials {
            username = "" // not needed
            password = "<access-token>"
        }
    }
}

2. Adding the required components as dependencies in the app's build.gradle.kts

dependencies {
    implementation("com.meta.wearable:mwdat-core:0.2.1")
    implementation("com.meta.wearable:mwdat-camera:0.2.1")
    implementation("com.meta.wearable:mwdat-mockdevice:0.2.1")
}

Developer Terms

  • By using the Wearables Device Access Toolkit, you agree to our Meta Wearables Developer Terms, including our Acceptable Use Policy.
  • By enabling Meta integrations, including through this SDK, Meta may collect information about how users' Meta devices communicate with your app. Meta will use this information collected in accordance with our Privacy Policy.
  • You may limit Meta's access to data from users' devices by following the instructions below.

Opting out of data collection

To configure analytics settings in your Meta Wearables DAT Android app, add the following <meta-data> element to your app's AndroidManifest.xml file within the <application> element:

<meta-data
    android:name="com.meta.wearable.mwdat.ANALYTICS_OPT_OUT"
    android:value="true"
    />

Default behavior: If the ANALYTICS_OPT_OUT metadata is missing or set to false, analytics are enabled (i.e., you are not opting out). Set to true to disable data collection.

Note: In other words, this setting controls whether or not you're opting out of analytics:

  • true = Opt out (analytics disabled)
  • false = Opt in (analytics enabled)

Complete example:

<application
    android:name=".MyApplication"
    android:label="MyApp"
    android:icon="@mipmap/app_launcher">

    <!-- Required: Your application ID from Wearables Developer Center -->
    <meta-data
        android:name="com.meta.wearable.mwdat.APPLICATION_ID"
        android:value="your_app_id_here"
        />

    <!-- Optional: Disable analytics -->
    <meta-data
        android:name="com.meta.wearable.mwdat.ANALYTICS_OPT_OUT"
        android:value="true"
        />

    <!-- Your activities and other components -->
</application>

License

See the LICENSE file.

About

Meta Wearables Device Access Toolkit for Android

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages