public interface AREventListener
Modifier and Type | Method and Description |
---|---|
void |
effectSwitched(java.lang.String slot)
Called when an effect has been switched on a slot.
|
void |
error(ARErrorType errorType,
java.lang.String error)
Called when an error occurs, for example, if the model path is not found or the effect file has failed to load.
|
void |
faceVisibilityChanged(boolean faceVisible)
Called when the user's face becomes visible or invisible.
|
void |
frameAvailable(android.media.Image frame)
Each processed frame will be available here as an Image object.
|
void |
imageVisibilityChanged(java.lang.String gameObjectName,
boolean imageVisible)
Called when a natural image is being tracked and the visibility has changed.
|
void |
initialized()
Called when the DeepAR is initialized.
|
void |
screenshotTaken(android.graphics.Bitmap screenshot)
Called when the screen capture is finished.
|
void |
shutdownFinished()
Called when engine shutdown is finished after calling
release . |
void |
videoRecordingFailed()
Called if the video recording fails.
|
void |
videoRecordingFinished()
Called when the video recording is finished.
|
void |
videoRecordingPrepared()
Called when the video recording is prepared.
|
void |
videoRecordingStarted()
The start of the video recording process is not synchronous, so this method will be called when the video recording is started.
|
void screenshotTaken(android.graphics.Bitmap screenshot)
screenshot
- The taken screenshot.void videoRecordingStarted()
void videoRecordingFinished()
void videoRecordingFailed()
void videoRecordingPrepared()
void shutdownFinished()
release
.void initialized()
void faceVisibilityChanged(boolean faceVisible)
faceVisible
- Indicates whether any face is visible or not.void imageVisibilityChanged(java.lang.String gameObjectName, boolean imageVisible)
gameObjectName
- The name of the node with the natural image tracking component.imageVisible
- The current image visibility.void frameAvailable(android.media.Image frame)
startCapture
on DeepAR
object otherwise this method will not be called.frame
- The processed frame.void error(ARErrorType errorType, java.lang.String error)
errorType
- DeepAR error type.error
- DeepAR error message.void effectSwitched(java.lang.String slot)
slot
- The slot name where the effect has been switched.