Package com.leia.sdk
Class LeiaSDK.Delegate
- java.lang.Object
-
- com.leia.sdk.LeiaSDK.Delegate
-
-
Constructor Summary
Constructors Constructor Description Delegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
didInitialize(LeiaSDK leiaSDK)
Called when LeiaSDK finished initialization.void
invalidLicense(LeiaSDK leiaSDK, String reason)
Called when LeiaSDK detects invalid license.void
onFaceTrackingFatalError(LeiaSDK leiaSDK)
Called when face tracking encounters a fatal error.void
onFaceTrackingLost(LeiaSDK leiaSDK)
Called when face tracking has been lost.void
onFaceTrackingRegained(LeiaSDK leiaSDK)
Called when face tracking has been regained.void
onFaceTrackingStarted(LeiaSDK leiaSDK)
Called when the first face tracking frame has been received.void
onFaceTrackingStopped(LeiaSDK leiaSDK)
Called when face tracking stops.
-
-
-
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.
-
-