-
public class CameraStateOrchestrator extends CameraOrchestrator
A special CameraOrchestrator with special methods that deal with the CameraState.
-
-
Constructor Summary
Constructors Constructor Description CameraStateOrchestrator(CameraOrchestrator.Callback callback)
-
Method Summary
Modifier and Type Method Description CameraStategetCurrentState()CameraStategetTargetState()booleanhasPendingStateChange()<T> Task<T>scheduleStateChange(@NonNull() CameraState fromState, @NonNull() CameraState toState, boolean dispatchExceptions, @NonNull() Callable<Task<T>> stateChange)Task<Void>scheduleStateful(@NonNull() String name, @NonNull() CameraState atLeast, @NonNull() Runnable job)voidscheduleStatefulDelayed(@NonNull() String name, @NonNull() CameraState atLeast, long delay, @NonNull() Runnable job)-
-
Constructor Detail
-
CameraStateOrchestrator
CameraStateOrchestrator(CameraOrchestrator.Callback callback)
-
-
Method Detail
-
getCurrentState
@NonNull() CameraState getCurrentState()
-
getTargetState
@NonNull() CameraState getTargetState()
-
hasPendingStateChange
boolean hasPendingStateChange()
-
scheduleStateChange
@NonNull() <T> Task<T> scheduleStateChange(@NonNull() CameraState fromState, @NonNull() CameraState toState, boolean dispatchExceptions, @NonNull() Callable<Task<T>> stateChange)
-
scheduleStateful
@NonNull() Task<Void> scheduleStateful(@NonNull() String name, @NonNull() CameraState atLeast, @NonNull() Runnable job)
-
scheduleStatefulDelayed
void scheduleStatefulDelayed(@NonNull() String name, @NonNull() CameraState atLeast, long delay, @NonNull() Runnable job)
-
-
-
-