Sample Applications

Anura Core SDK for Android and iOS each includes a basic Sample App. These apps demonstrate how to use the SDK, and can be used as a reference to build your own apps.

Anura Core Android Sample App

The Sample App for Android showcases a basic integration of Anura Core in Kotlin. The full source code of the application is included, and it demonstrates how to:

  • Setup app configuration including DeepAffex License and Study ID in server.properties.
  • Communicate with DeepAffex Cloud API:
    • Register your DeepAffex license key
    • Validate API access token, and refresh token if need
    • Get DeepAffex study config file
  • Initialize the measurement pipeline in AnuraExampleMeasurementActivity
  • Pass user provided demographic information (age, sex at birth, height, and weight) as part of the measurement data.
  • Utilize MeasurementResults to get results from DeepAffex to display

Note

Anura Core SDK for Android does not include any UI components for displaying results. For more information on how to interpret the results, including colour codes and value ranges for each result, please refer to the DFX Points Reference.

Screenshots

Anura Core iOS Sample App

The sample application for iOS showcases a basic integration of Anura Core in a native app written in Swift. The full source code of the sample application is included, and it demonstrates how to:

  • Setup app configuration including DeepAffex License, Study ID, API Hostname in Config.swift.
  • Communicate with DeepAffex Cloud API:
    • Register your DeepAffex license.
    • Validate API token.
    • Create a measurement.
    • Send measurement data.
    • Receive measurement results through a WebSocket connection.
  • Initialize and configure AnuraMeasurementViewController, the main UIViewController that displays the Anura measurement UI and controls the camera.
  • Implement AnuraMeasurementDelegate methods, and how to handle various events from AnuraMeasurementViewController (e.g. face detected, measurement started/completed/cancelled, etc.)
  • Pass user-provided demographic information (age, sex at birth, height, and weight) as part of the measurement data.
  • Decode measurement results from DeepAffex Cloud API, with a basic display of the final results in a UITableViewController.

Note

Anura Core SDK for iOS does not include any UI components for displaying results. For more information on how to interpret the results, including colour codes and value ranges for each result, please refer to the DFX Points Reference.

Screenshots