|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EnhancedFocusControl
EnhancedFocusControl extends the functionality provided by
FocusControl to provide more functionality over the
camera focus.
Player player = javax.microedition.media.Manager.createPlayer( "capture://video?encoding=image/jpeg" );
EnhancedFocusControl efc = (EnhancedFocusControl) player.getControl("net.rim.device.api.amms.control.camera.EnhancedFocusControl");
| Field Summary |
|---|
| Fields inherited from interface javax.microedition.amms.control.camera.FocusControl |
|---|
AUTO, AUTO_LOCK, NEXT, PREVIOUS, UNKNOWN |
| Method Summary | ||
|---|---|---|
boolean |
isAutoFocusLocked()
Returns whether or not the autofocus is locked. |
|
void |
startAutoFocus()
Locks the camera autofocus. |
|
void |
stopAutoFocus()
Unlocks the camera autofocus. |
|
| Methods inherited from interface javax.microedition.amms.control.camera.FocusControl |
|---|
getFocus, getFocusSteps, getMacro, getMinFocus, isAutoFocusSupported, isMacroSupported, isManualFocusSupported, setFocus, setMacro |
| Method Detail |
|---|
void startAutoFocus()
throws MediaException
EnhancedFocusControl.stopAutoFocus() is called, until a picture is taken (via burst shooting with a
SnapshotControl or
a call to VideoControl.getSnapshot(String)), or until the
viewfinder is stopped or closed. If the autofocus is already locked, this method
does nothing.
UnsupportedOperationException - If autofocus is not supported.
MediaException - If locking the autofocus fails.
void stopAutoFocus()
throws MediaException
MediaException - If unlocking the autofocus fails.boolean isAutoFocusLocked()
true if autofocus is locked, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.