-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.engine.action.Action
class TimeoutAction extends ActionWrapper
An Action that wraps another, and forces the completion after the given timeout in milliseconds is reached.
-
-
Field Summary
Fields Modifier and Type Field Description private BaseActionaction
-
Constructor Summary
Constructors Constructor Description TimeoutAction(long timeoutMillis, BaseAction action)
-
Method Summary
Modifier and Type Method Description voidonCaptureCompleted(ActionHolder holder, CaptureRequest request, TotalCaptureResult result)Called from onCaptureCompleted. BaseActiongetAction()Should return the wrapped action. -
Methods inherited from class com.otaliastudios.cameraview.engine.action.ActionWrapper
onCaptureProgressed, onCaptureStarted -
Methods inherited from class com.otaliastudios.cameraview.engine.action.BaseAction
abort, addCallback, getState, isCompleted, removeCallback, start -
Methods inherited from class com.otaliastudios.cameraview.engine.action.Action
onCaptureCompleted, onCaptureProgressed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TimeoutAction
TimeoutAction(long timeoutMillis, BaseAction action)
-
-
Method Detail
-
onCaptureCompleted
void onCaptureCompleted(ActionHolder holder, CaptureRequest request, TotalCaptureResult result)
Called from onCaptureCompleted.
- Parameters:
holder- the holderrequest- the requestresult- the result
-
getAction
@NonNull() BaseAction getAction()
Should return the wrapped action.
-
-
-
-