Package com.leia.sdk

Class LeiaSDK.Delegate

  • Enclosing class:
    LeiaSDK

    public abstract static class LeiaSDK.Delegate
    extends Object
    LeiaSDK delegate. Most of the callbacks are invoked from a background thread.
    • Constructor Detail

      • Delegate

        public Delegate()
    • Method Detail

      • didInitialize

        public void didInitialize​(@NonNull
                                  LeiaSDK leiaSDK)
        Called when LeiaSDK finished initialization.
      • invalidLicense

        public void invalidLicense​(@NonNull
                                   LeiaSDK leiaSDK,
                                   @Nullable
                                   String reason)
        Called when LeiaSDK detects invalid license.
      • onFaceTrackingFatalError

        public void onFaceTrackingFatalError​(@NonNull
                                             LeiaSDK leiaSDK)
        Called when face tracking encounters a fatal error. Face tracking should be disabled if it happens. LeiaSDK.enableFaceTracking(boolean) should not be called from this callback.
      • onFaceTrackingStarted

        public void onFaceTrackingStarted​(@NonNull
                                          LeiaSDK leiaSDK)
        Called when the first face tracking frame has been received.
      • onFaceTrackingStopped

        public void onFaceTrackingStopped​(@NonNull
                                          LeiaSDK leiaSDK)
        Called when face tracking stops. Might be called multiple times.
      • onFaceTrackingLost

        public void onFaceTrackingLost​(@NonNull
                                       LeiaSDK leiaSDK)
        Called when face tracking has been lost. Added in v0.7.100.
      • onFaceTrackingRegained

        public void onFaceTrackingRegained​(@NonNull
                                           LeiaSDK leiaSDK)
        Called when face tracking has been regained. Added in v0.7.100.