PTZ_ControllerFragment¶
-
public class
PTZ_ControllerFragment
extends DialogFragment implements OnTouchListener¶ This fragment provides you a set of visual panels and buttons to be used as a GUI frontend for handling remote PTZ webcams. This fragment expects the attached activity implements the
IPtzCommandReceiver
interface, because it notifies to this interface all the GUI actions (e.g button clicks)
Methods¶
newInstance¶
-
public static PTZ_ControllerFragment
newInstance
()¶ Provides a new instance of this fragment, with all panels visible
Returns: the PTZ_ControllerFragment instance
newInstance¶
-
public static PTZ_ControllerFragment
newInstance
(boolean panTiltPanelVisible, boolean zoomPanelVisible, boolean snapShotVisible)¶ Provides a new instance of this fragment, with a selection of desired panels
Parameters: - panTiltPanelVisible – set the pan-tilt panel visible or not
- zoomPanelVisible – set the zoom panel visible or not
- snapShotVisible – set the snapshot button visible or not