BarabaConfiguration

public struct BarabaConfiguration

A configuration that defines behavior for a Baraba object.

  • An automatic configuration. Baraba determines which configuration to use based on hardware availability.

    If the device supports ARFaceTrackingConfiguration, then BarabaConfiguration.ar is used. Otherwise, BarabaConfiguration.av is used.

    Declaration

    Swift

    public static let automatic: BarabaConfiguration
  • ar

    A configuration that uses ARKit Face Tracking to detect faces.

    ARKit Face Tracking is available only on iOS devices with a front-facing TrueDepth camera. Call Baraba.isConfigurationSupported(_:) to determine whether this configuration is available on the current device.

    Important

    If you use this configuration, your app must include a privacy policy describing to users how you intend to use face tracking and face data. See link for more details.

    Declaration

    Swift

    public static let ar: BarabaConfiguration
  • av

    A configuration that uses AVFoundation to track faces.

    Declaration

    Swift

    public static let av: BarabaConfiguration