cordova-plugin-pdf417
Version:
A small and powerful PDF417 barcode scanning library
1,993 lines • 106 kB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>BaseCameraView (LibPdf417Mobi API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BaseCameraView (LibPdf417Mobi API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":6,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":9,"i36":10,"i37":10,"i38":6,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":6,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../com/microblink/view/BaseCameraView.BaseCameraListener.html" title="class in com.microblink.view"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/microblink/view/BaseCameraView.html" target="_top">Frames</a></li>
<li><a href="BaseCameraView.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.microblink.view</div>
<h2 title="Class BaseCameraView" class="title">Class BaseCameraView</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>android.view.View</li>
<li>
<ul class="inheritance">
<li>android.view.ViewGroup</li>
<li>
<ul class="inheritance">
<li>com.microblink.view.BaseCameraView</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent</dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../com/microblink/view/CameraViewGroup.html" title="class in com.microblink.view">CameraViewGroup</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">BaseCameraView</span>
extends android.view.ViewGroup</pre>
<div class="block">Created by dodo on 25/08/16.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.BaseCameraListener.html" title="class in com.microblink.view">BaseCameraView.BaseCameraListener</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.BaseCameraViewEventsListener.html" title="class in com.microblink.view">BaseCameraView.BaseCameraViewEventsListener</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.BaseOrientationChangeListener.html" title="class in com.microblink.view">BaseCameraView.BaseOrientationChangeListener</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.CameraViewState.html" title="enum in com.microblink.view">BaseCameraView.CameraViewState</a></span></code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.android.view.ViewGroup">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class android.view.ViewGroup</h3>
<code>android.view.ViewGroup.LayoutParams, android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.android.view.View">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class android.view.View</h3>
<code>android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener</code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mAspectMode">mAspectMode</a></span></code>
<div class="block">Defines the way camera preview will be layouted inside view</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mCameraEventsListener">mCameraEventsListener</a></span></code>
<div class="block">Listener that will receive various camera events</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected ICameraView</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mCameraSurfaceView">mCameraSurfaceView</a></span></code>
<div class="block">View element</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/view/BaseCameraView.CameraViewState.html" title="enum in com.microblink.view">BaseCameraView.CameraViewState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mCameraViewState">mCameraViewState</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mConfigurationOrientation">mConfigurationOrientation</a></span></code>
<div class="block">Current configuration orientation</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected DeviceManager</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mDeviceManager">mDeviceManager</a></span></code>
<div class="block">Device manager that will load device list from resources</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mErrorState">mErrorState</a></span></code>
<div class="block">Flag indicating there has been an unrecoverable error</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mHostScreenOrientation">mHostScreenOrientation</a></span></code>
<div class="block">Orientation of the host activity</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mInitialOrientation">mInitialOrientation</a></span></code>
<div class="block">Initial orientation which will be used for frame orientation if mOrientation is unknown</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mIsRequestedOrientationSensor">mIsRequestedOrientationSensor</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mIsRequestedOrientationUser">mIsRequestedOrientationUser</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/view/OnActivityFlipListener.html" title="interface in com.microblink.view">OnActivityFlipListener</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mOnActivityFlipListener">mOnActivityFlipListener</a></span></code>
<div class="block">Listener that will be notified when activity flip occurs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected OrientationChangeListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mOrientationChangeListener">mOrientationChangeListener</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mRotateMeteringAreas">mRotateMeteringAreas</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected OrientationChangeListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#mSlaveOrientationChangeListener">mSlaveOrientationChangeListener</a></span></code>
<div class="block">Slave orientation change listener that can be notified of orientation change events generated by mOrientationManager</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.android.view.ViewGroup">
<!-- -->
</a>
<h3>Fields inherited from class android.view.ViewGroup</h3>
<code>CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.android.view.View">
<!-- -->
</a>
<h3>Fields inherited from class android.view.View</h3>
<code>ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#BaseCameraView-android.content.Context-">BaseCameraView</a></span>(android.content.Context context)</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#BaseCameraView-android.content.Context-android.util.AttributeSet-">BaseCameraView</a></span>(android.content.Context context,
android.util.AttributeSet attrs)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#areCameraPixelsLandscapeLeft--">areCameraPixelsLandscapeLeft</a></span>()</code> </td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#calculateHostScreenOrientation--">calculateHostScreenOrientation</a></span>()</code> </td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#changeConfiguration-android.content.res.Configuration-">changeConfiguration</a></span>(android.content.res.Configuration newConfiguration)</code>
<div class="block">This method changes the view's configuration.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#changeConfigurationInternal-android.content.res.Configuration-">changeConfigurationInternal</a></span>(android.content.res.Configuration newConfiguration)</code> </td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#create--">create</a></span>()</code>
<div class="block">Creates the view and its subviews and initializes camera settings.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected abstract CameraListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#createCameraListener--">createCameraListener</a></span>()</code>
<div class="block">ABSTRACT METHODS</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected ICameraView.CameraViewEventListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#createCameraViewEventsListener--">createCameraViewEventsListener</a></span>()</code> </td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected OrientationChangeListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#createOrientationChangeListener--">createOrientationChangeListener</a></span>()</code> </td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#destroy--">destroy</a></span>()</code> </td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#dispatchTouchEvent-android.view.MotionEvent-">dispatchTouchEvent</a></span>(android.view.MotionEvent ev)</code> </td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#focusCamera--">focusCamera</a></span>()</code>
<div class="block">Request a new autofocus cycle from camera.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getActivityOrientation--">getActivityOrientation</a></span>()</code> </td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getAspectMode--">getAspectMode</a></span>()</code>
<div class="block">Returns the aspect mode of camera preview.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCameraEventsListener--">getCameraEventsListener</a></span>()</code>
<div class="block">Returns the current camera events listener.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>protected CameraSettings</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCameraFactorySettings--">getCameraFactorySettings</a></span>()</code> </td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCameraPreviewHeight--">getCameraPreviewHeight</a></span>()</code>
<div class="block">Returns the height in pixels of the actual camera preview (does not have to be same as getHeight).</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCameraPreviewWidth--">getCameraPreviewWidth</a></span>()</code>
<div class="block">Returns the width in pixels of the actual camera preview (does not have to be same as getWidth).</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/view/BaseCameraView.CameraViewState.html" title="enum in com.microblink.view">BaseCameraView.CameraViewState</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCameraViewState--">getCameraViewState</a></span>()</code>
<div class="block">Returns the current lifecycle state of camera view.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getConfigurationOrientation--">getConfigurationOrientation</a></span>()</code> </td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getCurrentOrientation--">getCurrentOrientation</a></span>()</code> </td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>protected android.app.Activity</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getHostActivity--">getHostActivity</a></span>()</code> </td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getHostScreenOrientation--">getHostScreenOrientation</a></span>()</code>
<div class="block">Returns the host's screen orientation as detected internally.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getInitialOrientation--">getInitialOrientation</a></span>()</code>
<div class="block">Returns the initial orientation of rotatable view as set by setInitialOrientation.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../com/microblink/hardware/camera/CameraType.html" title="enum in com.microblink.hardware.camera">CameraType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getOpenedCameraType--">getOpenedCameraType</a></span>()</code>
<div class="block">Returns the type of the currently opened camera or null if currently there is no opened camera.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>OrientationChangeListener</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getOrientationChangeListener--">getOrientationChangeListener</a></span>()</code>
<div class="block">Returns the current oreintation change listener</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>android.graphics.RectF</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getVisiblePart--">getVisiblePart</a></span>()</code>
<div class="block">Returns the rectangle that which part of camera frame is visible in view</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#getZoomLevel--">getZoomLevel</a></span>()</code>
<div class="block">Returns the current camera zoom level.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>java.lang.Boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isAutofocusSupported--">isAutofocusSupported</a></span>()</code>
<div class="block">Returns true if opened camera supports autofocus.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isCameraActive--">isCameraActive</a></span>()</code>
<div class="block">Returns true if camera is currently active.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isCameraFocused--">isCameraFocused</a></span>()</code>
<div class="block">Returns true if camera is currently in focus</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isCameraTorchSupported--">isCameraTorchSupported</a></span>()</code>
<div class="block">Returns true if camera has got torch.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isDeviceShaking--">isDeviceShaking</a></span>()</code>
<div class="block">Returns true if the device is being shaken</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isHostActivityOrientationOnSensor--">isHostActivityOrientationOnSensor</a></span>()</code> </td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isOrientationAllowed-com.microblink.hardware.orientation.Orientation-">isOrientationAllowed</a></span>(<a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> orientation)</code> </td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isPinchToZoomAllowed--">isPinchToZoomAllowed</a></span>()</code>
<div class="block">Returns true if camera view will handle pinch events to manage camera zoom level.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isRequestedOrientationSensor-int-">isRequestedOrientationSensor</a></span>(int requestedOrientation)</code> </td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isRequestedOrientationUser-int-">isRequestedOrientationUser</a></span>(int requestedOrientation)</code> </td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#isTapToFocusAllowed--">isTapToFocusAllowed</a></span>()</code>
<div class="block">Returns true if camera view will handle tap events to ask camera to perform autofocus
on tapped area.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onActivityFlip--">onActivityFlip</a></span>()</code>
<div class="block">Called when activity is flipped - this event is not raised by OS so we have custom detection
of that state.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onCameraPreviewStarted--">onCameraPreviewStarted</a></span>()</code> </td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onCameraPreviewStopped--">onCameraPreviewStopped</a></span>()</code> </td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>protected ICameraManager</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onCreateCameraManager-CameraSettings-">onCreateCameraManager</a></span>(CameraSettings settings)</code>
<div class="block">Called inside onCreate method.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onLayout-boolean-int-int-int-int-">onLayout</a></span>(boolean changed,
int l,
int t,
int r,
int b)</code> </td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#onMeasure-int-int-">onMeasure</a></span>(int widthMeasureSpec,
int heightMeasureSpec)</code> </td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#pause--">pause</a></span>()</code>
<div class="block">This method must be called from activity's onPause.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#prepareCameraSettings-CameraSettings-">prepareCameraSettings</a></span>(CameraSettings settings)</code>
<div class="block">Called inside onCreate method before creating camera manager.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>protected abstract boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#requireAutofocusFeature--">requireAutofocusFeature</a></span>()</code>
<div class="block">If autofocus feature is required, please return true from this method.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#resume--">resume</a></span>()</code>
<div class="block">This method must be called from activity's onResume.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#runOnUIThread-java.lang.Runnable-">runOnUIThread</a></span>(java.lang.Runnable runnable)</code>
<div class="block">Ensures given runnable is run on UI thread.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setAspectMode-com.microblink.view.CameraAspectMode-">setAspectMode</a></span>(<a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a> aspectMode)</code>
<div class="block">Defines the aspect mode of camera preview.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setCameraEventsListener-com.microblink.view.CameraEventsListener-">setCameraEventsListener</a></span>(<a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a> cameraEventsListener)</code>
<div class="block">Sets the listener that will receive various camera events, such as when camera preview has
started or camera initialization error has occurred.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setCameraType-com.microblink.hardware.camera.CameraType-">setCameraType</a></span>(<a href="../../../com/microblink/hardware/camera/CameraType.html" title="enum in com.microblink.hardware.camera">CameraType</a> cameraType)</code>
<div class="block">Sets the camera type that will be used.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setForceUseLegacyCamera-boolean-">setForceUseLegacyCamera</a></span>(boolean useLegacyCamera)</code>
<div class="block">With this method you can request using legacy Camera API even on devices that natively support new Camera2 API.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setInitialOrientation-com.microblink.hardware.orientation.Orientation-">setInitialOrientation</a></span>(<a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> initialOrientation)</code>
<div class="block">Sets the initial orientation of rotatable view and recognizer.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setMeteringAreas-android.graphics.RectF:A-boolean-">setMeteringAreas</a></span>(android.graphics.RectF[] meteringAreas,
boolean rotateAreasWithDevice)</code>
<div class="block">Sets the areas where camera will perform focus, exposure and white balance meterings.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setMeteringAreasToCamera--">setMeteringAreasToCamera</a></span>()</code> </td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setOnActivityFlipListener-com.microblink.view.OnActivityFlipListener-">setOnActivityFlipListener</a></span>(<a href="../../../com/microblink/view/OnActivityFlipListener.html" title="interface in com.microblink.view">OnActivityFlipListener</a> onActivityFlipListener)</code>
<div class="block">Sets the listener that will be notified when activity flip event occurs.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setOnSizeChangedListener-com.microblink.view.OnSizeChangedListener-">setOnSizeChangedListener</a></span>(<a href="../../../com/microblink/view/OnSizeChangedListener.html" title="interface in com.microblink.view">OnSizeChangedListener</a> onSizeChangedListener)</code>
<div class="block">Sets the listener that will be notified when size of child views changes.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setOptimizeCameraForNearScan-boolean-">setOptimizeCameraForNearScan</a></span>(boolean nearScan)</code> </td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setOrientationAllowedListener-com.microblink.view.OrientationAllowedListener-">setOrientationAllowedListener</a></span>(<a href="../../../com/microblink/view/OrientationAllowedListener.html" title="interface in com.microblink.view">OrientationAllowedListener</a> orientationAllowedListener)</code>
<div class="block">Sets the listener that will be asked if device orientation is allowed prior rotating
rotatable view and native recognizer to that orientation.</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setOrientationChangeListener-OrientationChangeListener-">setOrientationChangeListener</a></span>(OrientationChangeListener orientationChangeListener)</code>
<div class="block">Sets the orientation listener that will receive orientation change events that are already reported
to BaseCameraView.</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setPhotoMode-boolean-">setPhotoMode</a></span>(boolean photoMode)</code> </td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setPinchToZoomAllowed-boolean-">setPinchToZoomAllowed</a></span>(boolean allowPinchToZoom)</code>
<div class="block">Sets whether camear view will handle pinch events to manage camera zoom level.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setRequestAutofocusOnShakingStopInContinousAutofocusMode-boolean-">setRequestAutofocusOnShakingStopInContinousAutofocusMode</a></span>(boolean requestAutofocusOnShakingStopInContinousAutofocusMode)</code>
<div class="block">If device supports continous autofocus mode, enabling this feature will request normal autofocus every time device shaking
stops.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setShakeListener-com.microblink.hardware.accelerometer.ShakeCallback-">setShakeListener</a></span>(<a href="../../../com/microblink/hardware/accelerometer/ShakeCallback.html" title="interface in com.microblink.hardware.accelerometer">ShakeCallback</a> shakeCallback)</code>
<div class="block">Sets the shake callback that will be notified about device shake events.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setTapToFocusAllowed-boolean-">setTapToFocusAllowed</a></span>(boolean allowTapToFocus)</code>
<div class="block">Sets whether camera view will handle tap events to ask camera to perform autofocus
on tapped area.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setTorchState-boolean-com.microblink.hardware.SuccessCallback-">setTorchState</a></span>(boolean on,
<a href="../../../com/microblink/hardware/SuccessCallback.html" title="interface in com.microblink.hardware">SuccessCallback</a> successCallback)</code>
<div class="block">Turns the torch on the camera on or off.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setUseTextureViewForCameraDisplay-boolean-">setUseTextureViewForCameraDisplay</a></span>(boolean forceTextureView)</code>
<div class="block">In order to display camera preview, camera view must use one of two android's view's that are
capable of displaying camera preview video stream.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setVideoResolutionPreset-com.microblink.hardware.camera.VideoResolutionPreset-">setVideoResolutionPreset</a></span>(<a href="../../../com/microblink/hardware/camera/VideoResolutionPreset.html" title="enum in com.microblink.hardware.camera">VideoResolutionPreset</a> preset)</code> </td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#setZoomLevel-float-">setZoomLevel</a></span>(float zoomLevel)</code>
<div class="block">Sets the camera zoom level.</div>
</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#shouldStartCamera--">shouldStartCamera</a></span>()</code> </td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#start--">start</a></span>()</code> </td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/microblink/view/BaseCameraView.html#stop--">stop</a></span>()</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.android.view.ViewGroup">
<!-- -->
</a>
<h3>Methods inherited from class android.view.ViewGroup</h3>
<code>addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, checkLayoutParams, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, shouldDelayChildPressedState, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.android.view.View">
<!-- -->
</a>
<h3>Methods inherited from class android.view.View</h3>
<code>addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchStartTemporaryDetach, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.android.view.ViewParent">
<!-- -->
</a>
<h3>Methods inherited from interface android.view.ViewParent</h3>
<code>canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows, requestLayout</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="mCameraEventsListener">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mCameraEventsListener</h4>
<pre>protected <a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a> mCameraEventsListener</pre>
<div class="block">Listener that will receive various camera events</div>
</li>
</ul>
<a name="mErrorState">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mErrorState</h4>
<pre>protected boolean mErrorState</pre>
<div class="block">Flag indicating there has been an unrecoverable error</div>
</li>
</ul>
<a name="mDeviceManager">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mDeviceManager</h4>
<pre>protected DeviceManager mDeviceManager</pre>
<div class="block">Device manager that will load device list from resources</div>
</li>
</ul>
<a name="mCameraViewState">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mCameraViewState</h4>
<pre>protected <a href="../../../com/microblink/view/BaseCameraView.CameraViewState.html" title="enum in com.microblink.view">BaseCameraView.CameraViewState</a> mCameraViewState</pre>
</li>
</ul>
<a name="mCameraSurfaceView">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mCameraSurfaceView</h4>
<pre>protected ICameraView mCameraSurfaceView</pre>
<div class="block">View element</div>
</li>
</ul>
<a name="mConfigurationOrientation">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mConfigurationOrientation</h4>
<pre>protected int mConfigurationOrientation</pre>
<div class="block">Current configuration orientation</div>
</li>
</ul>
<a name="mOnActivityFlipListener">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mOnActivityFlipListener</h4>
<pre>protected <a href="../../../com/microblink/view/OnActivityFlipListener.html" title="interface in com.microblink.view">OnActivityFlipListener</a> mOnActivityFlipListener</pre>
<div class="block">Listener that will be notified when activity flip occurs.</div>
</li>
</ul>
<a name="mHostScreenOrientation">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mHostScreenOrientation</h4>
<pre>protected int mHostScreenOrientation</pre>
<div class="block">Orientation of the host activity</div>
</li>
</ul>
<a name="mAspectMode">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mAspectMode</h4>
<pre>protected <a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a> mAspectMode</pre>
<div class="block">Defines the way camera preview will be layouted inside view</div>
</li>
</ul>
<a name="mIsRequestedOrientationSensor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mIsRequestedOrientationSensor</h4>
<pre>protected boolean mIsRequestedOrientationSensor</pre>
</li>
</ul>
<a name="mIsRequestedOrientationUser">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mIsRequestedOrientationUser</h4>
<pre>protected boolean mIsRequestedOrientationUser</pre>
</li>
</ul>
<a name="mOrientationChangeListener">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mOrientationChangeListener</h4>
<pre>protected OrientationChangeListener mOrientationChangeListener</pre>
</li>
</ul>
<a name="mRotateMeteringAreas">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mRotateMeteringAreas</h4>
<pre>protected boolean mRotateMeteringAreas</pre>
</li>
</ul>
<a name="mInitialOrientation">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mInitialOrientation</h4>
<pre>protected <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> mInitialOrientation</pre>
<div class="block">Initial orientation which will be used for frame orientation if mOrientation is unknown</div>
</li>
</ul>
<a name="mSlaveOrientationChangeListener">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mSlaveOrientationChangeListener</h4>
<pre>protected OrientationChangeListener mSlaveOrientationChangeListener</pre>
<div class="block">Slave orientation change listener that can be notified of orientation change events generated by mOrientationManager</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="BaseCameraView-android.content.Context-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BaseCameraView</h4>
<pre>public BaseCameraView(android.content.Context context)</pre>
</li>
</ul>
<a name="BaseCameraView-android.content.Context-android.util.AttributeSet-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BaseCameraView</h4>
<pre>public BaseCameraView(android.content.Context context,
android.util.AttributeSet attrs)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="isRequestedOrientationSensor-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRequestedOrientationSensor</h4>
<pre>protected static boolean isRequestedOrientationSensor(int requestedOrientation)</pre>
</li>
</ul>
<a name="isRequestedOrientationUser-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRequestedOrientationUser</h4>
<pre>protected boolean isRequestedOrientationUser(int requestedOrientation)</pre>
</li>
</ul>
<a name="getActivityOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getActivityOrientation</h4>
<pre>protected <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> getActivityOrientation()</pre>
</li>
</ul>
<a name="calculateHostScreenOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calculateHostScreenOrientation</h4>
<pre>protected int calculateHostScreenOrientation()</pre>
</li>
</ul>
<a name="runOnUIThread-java.lang.Runnable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runOnUIThread</h4>
<pre>protected void runOnUIThread(java.lang.Runnable runnable)</pre>
<div class="block">Ensures given runnable is run on UI thread. If called from UI thread, runnable's code will be
run immediately (before returning from method). If not, runnable's code will be posted to UI
thread's processing queue.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>runnable</code> - </dd>
</dl>
</li>
</ul>
<a name="changeConfiguration-android.content.res.Configuration-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeConfiguration</h4>
<pre>@UiThread
public void changeConfiguration(android.content.res.Configuration newConfiguration)</pre>
<div class="block">This method changes the view's configuration. It is meant to be called from onConfigurationChange event.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newConfiguration</code> - New view configuration</dd>
</dl>
</li>
</ul>
<a name="changeConfigurationInternal-android.content.res.Configuration-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeConfigurationInternal</h4>
<pre>@CallSuper
protected void changeConfigurationInternal(android.content.res.Configuration newConfiguration)</pre>
</li>
</ul>
<a name="getHostActivity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHostActivity</h4>
<pre>protected android.app.Activity getHostActivity()</pre>
</li>
</ul>
<a name="create--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>@UiThread
@CallSuper
public void create()</pre>
<div class="block">Creates the view and its subviews and initializes camera settings. This method must be called in onCreate method of host activity. If not called,
camera will not work. Make sure you set all your settings before calling this method.</div>
</li>
</ul>
<a name="destroy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>destroy</h4>
<pre>@UiThread
@CallSuper
public void destroy()</pre>
</li>
</ul>
<a name="prepareCameraSettings-CameraSettings-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prepareCameraSettings</h4>
<pre>protected void prepareCameraSettings(CameraSettings settings)</pre>
<div class="block">Called inside onCreate method before creating camera manager. Use this
method to create camera settings that are used on each startPreview event.</div>
</li>
</ul>
<a name="getCameraFactorySettings--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCameraFactorySettings</h4>
<pre>protected CameraSettings getCameraFactorySettings()</pre>
</li>
</ul>
<a name="onCreateCameraManager-CameraSettings-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onCreateCameraManager</h4>
<pre>protected ICameraManager onCreateCameraManager(CameraSettings settings)</pre>
<div class="block">Called inside onCreate method. This method should build appropriate
camera manager for camera preview.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>settings</code> - camera settings as returned by onCreateCameraFactorySettings</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Appropriate camera manager.</dd>
</dl>
</li>
</ul>
<a name="shouldStartCamera--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldStartCamera</h4>
<pre>protected boolean shouldStartCamera()</pre>
</li>
</ul>
<a name="onCameraPreviewStarted--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onCameraPreviewStarted</h4>
<pre>protected void onCameraPreviewStarted()</pre>
</li>
</ul>
<a name="onCameraPreviewStopped--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onCameraPreviewStopped</h4>
<pre>protected void onCameraPreviewStopped()</pre>
</li>
</ul>
<a name="start--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>@UiThread
@CallSuper
public void start()</pre>
</li>
</ul>
<a name="resume--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resume</h4>
<pre>@UiThread
@CallSuper
public void resume()</pre>
<div class="block">This method must be called from activity's onResume. If not called, camera will not work.</div>
</li>
</ul>
<a name="pause--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pause</h4>
<pre>@UiThread
@CallSuper
public void pause()</pre>
<div class="block">This method must be called from activity's onPause. If not called, camera will not work properly.</div>
</li>
</ul>
<a name="stop--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre>@UiThread
@CallSuper
public void stop()</pre>
</li>
</ul>
<a name="onMeasure-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onMeasure</h4>
<pre>@UiThread
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>onMeasure</code> in class <code>android.view.View</code></dd>
</dl>
</li>
</ul>
<a name="dispatchTouchEvent-android.view.MotionEvent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dispatchTouchEvent</h4>
<pre>@UiThread
public boolean dispatchTouchEvent(android.view.MotionEvent ev)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>dispatchTouchEvent</code> in class <code>android.view.ViewGroup</code></dd>
</dl>
</li>
</ul>
<a name="onLayout-boolean-int-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onLayout</h4>
<pre>@UiThread
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>onLayout</code> in class <code>android.view.ViewGroup</code></dd>
</dl>
</li>
</ul>
<a name="isCameraFocused--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCameraFocused</h4>
<pre>@UiThread
public final boolean isCameraFocused()</pre>
<div class="block">Returns true if camera is currently in focus</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
<a name="getOpenedCameraType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOpenedCameraType</h4>
<pre>@UiThread
public final <a href="../../../com/microblink/hardware/camera/CameraType.html" title="enum in com.microblink.hardware.camera">CameraType</a> getOpenedCameraType()</pre>
<div class="block">Returns the type of the currently opened camera or null if currently there is no opened camera.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the type of the currently opened camera or null if currently there is no opened camera.</dd>
</dl>
</li>
</ul>
<a name="focusCamera--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>focusCamera</h4>
<pre>@UiThread
public final void focusCamera()</pre>
<div class="block">Request a new autofocus cycle from camera.</div>
</li>
</ul>
<a name="isCameraTorchSupported--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCameraTorchSupported</h4>
<pre>@UiThread
public final boolean isCameraTorchSupported()</pre>
<div class="block">Returns true if camera has got torch.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if camera has got torch.</dd>
</dl>
</li>
</ul>
<a name="isAutofocusSupported--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAutofocusSupported</h4>
<pre>@Nullable
@UiThread
public final java.lang.Boolean isAutofocusSupported()</pre>
<div class="block">Returns true if opened camera supports autofocus. Returns false if opened camera does
not support autofocus. Returns null if camera is not opened.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether opened camera supports autofocus or null if no camera is opened</dd>
</dl>
</li>
</ul>
<a name="setTorchState-boolean-com.microblink.hardware.SuccessCallback-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTorchState</h4>
<pre>@UiThread
public final void setTorchState(boolean on,
<a href="../../../com/microblink/hardware/SuccessCallback.html" title="interface in com.microblink.hardware">SuccessCallback</a> successCallback)</pre>
<div class="block">Turns the torch on the camera on or off. Returns true on success, false on failure.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>on</code> - If true, torch will be turned on, if false, torch will be turned off.</dd>
<dd><code>successCallback</code> - callback that will receive information if torch was successfully put in desired state</dd>
</dl>
</li>
</ul>
<a name="areCameraPixelsLandscapeLeft--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>areCameraPixelsLandscapeLeft</h4>
<pre>protected boolean areCameraPixelsLandscapeLeft()</pre>
</li>
</ul>
<a name="getZoomLevel--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getZoomLevel</h4>
<pre>@UiThread
public final float getZoomLevel()</pre>
<div class="block">Returns the current camera zoom level.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the current camera zoom level.</dd>
</dl>
</li>
</ul>
<a name="setZoomLevel-float-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setZoomLevel</h4>
<pre>@UiThread
public final void setZoomLevel(float zoomLevel)</pre>
<div class="block">Sets the camera zoom level. Zoom level 0.f defines no applied zoom, while
zoom level 1.f defines maximum supported camera zoom. Values beyond
interval [0.f, 1.f] are cropped to interval [0.f, 1.f].
If camera is active, new zoom level is applied immediately. If camera is
not active, desired zoom level will be applied on next camera startup.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>zoomLevel</code> - Desired camera zoom level.</dd>
</dl>
</li>
</ul>
<a name="getCameraViewState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCameraViewState</h4>
<pre>@UiThread
public final <a href="../../../com/microblink/view/BaseCameraView.CameraViewState.html" title="enum in com.microblink.view">BaseCameraView.CameraViewState</a> getCameraViewState()</pre>
<div class="block">Returns the current lifecycle state of camera view.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
<a name="isTapToFocusAllowed--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTapToFocusAllowed</h4>
<pre>public final boolean isTapToFocusAllowed()</pre>
<div class="block">Returns true if camera view will handle tap events to ask camera to perform autofocus
on tapped area.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if tap to focus is allowed</dd>
</dl>
</li>
</ul>
<a name="setTapToFocusAllowed-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTapToFocusAllowed</h4>
<pre>public final void setTapToFocusAllowed(boolean allowTapToFocus)</pre>
<div class="block">Sets whether camera view will handle tap events to ask camera to perform autofocus
on tapped area. Default is true.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>allowTapToFocus</code> - whether or not tap to focus is allowed</dd>
</dl>
</li>
</ul>
<a name="isPinchToZoomAllowed--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPinchToZoomAllowed</h4>
<pre>public final boolean isPinchToZoomAllowed()</pre>
<div class="block">Returns true if camera view will handle pinch events to manage camera zoom level.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if pinch to zoom is allowed</dd>
</dl>
</li>
</ul>
<a name="setPinchToZoomAllowed-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPinchToZoomAllowed</h4>
<pre>public final void setPinchToZoomAllowed(boolean allowPinchToZoom)</pre>
<div class="block">Sets whether camear view will handle pinch events to manage camera zoom level.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>allowPinchToZoom</code> - whether or not pinch to zoom is allowed. Default is false.</dd>
</dl>
</li>
</ul>
<a name="isDeviceShaking--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDeviceShaking</h4>
<pre>public final boolean isDeviceShaking()</pre>
<div class="block">Returns true if the device is being shaken</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the device is being shaken</dd>
</dl>
</li>
</ul>
<a name="getCameraPreviewWidth--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCameraPreviewWidth</h4>
<pre>public final int getCameraPreviewWidth()</pre>
<div class="block">Returns the width in pixels of the actual camera preview (does not have to be same as getWidth).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the width in pixels of the actual camera preview (does not have to be same as getWidth).</dd>
</dl>
</li>
</ul>
<a name="getCameraPreviewHeight--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCameraPreviewHeight</h4>
<pre>public final int getCameraPreviewHeight()</pre>
<div class="block">Returns the height in pixels of the actual camera preview (does not have to be same as getHeight).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the height in pixels of the actual camera preview (does not have to be same as getHeight).</dd>
</dl>
</li>
</ul>
<a name="setMeteringAreas-android.graphics.RectF:A-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMeteringAreas</h4>
<pre>@UiThread
public final void setMeteringAreas(android.graphics.RectF[] meteringAreas,
boolean rotateAreasWithDevice)</pre>
<div class="block">Sets the areas where camera will perform focus, exposure and white balance meterings.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>meteringAreas</code> - array of rectangles that define areas where camera will perform focus, exposure and white balance meterings.</dd>
<dd><code>rotateAreasWithDevice</code> - if set to true, metering areas will be readjusted each time device orientation changes</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if at least one element of meteringAreas is null</dd>
<dd><code>java.lang.IllegalArgumentException</code> - if at least on element of meteringAreas has either zero surface or is not inside view</dd>
<dd><code>java.lang.IllegalStateException</code> - if camera is not active</dd>
</dl>
</li>
</ul>
<a name="setMeteringAreasToCamera--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMeteringAreasToCamera</h4>
<pre>protected void setMeteringAreasToCamera()</pre>
</li>
</ul>
<a name="isCameraActive--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCameraActive</h4>
<pre>public final boolean isCameraActive()</pre>
<div class="block">Returns true if camera is currently active.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if camera is currently active.</dd>
</dl>
</li>
</ul>
<a name="getConfigurationOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConfigurationOrientation</h4>
<pre>protected final int getConfigurationOrientation()</pre>
</li>
</ul>
<a name="setCameraType-com.microblink.hardware.camera.CameraType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCameraType</h4>
<pre>@UiThread
public void setCameraType(<a href="../../../com/microblink/hardware/camera/CameraType.html" title="enum in com.microblink.hardware.camera">CameraType</a> cameraType)</pre>
<div class="block">Sets the camera type that will be used. You must set this before calling create method.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cameraType</code> - </dd>
</dl>
</li>
</ul>
<a name="setShakeListener-com.microblink.hardware.accelerometer.ShakeCallback-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShakeListener</h4>
<pre>@UiThread
public void setShakeListener(<a href="../../../com/microblink/hardware/accelerometer/ShakeCallback.html" title="interface in com.microblink.hardware.accelerometer">ShakeCallback</a> shakeCallback)</pre>
<div class="block">Sets the shake callback that will be notified about device shake events.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>shakeCallback</code> - </dd>
</dl>
</li>
</ul>
<a name="getAspectMode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAspectMode</h4>
<pre>public <a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a> getAspectMode()</pre>
<div class="block">Returns the aspect mode of camera preview.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the aspect mode of camera preview.</dd>
</dl>
</li>
</ul>
<a name="setAspectMode-com.microblink.view.CameraAspectMode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAspectMode</h4>
<pre>@UiThread
public void setAspectMode(<a href="../../../com/microblink/view/CameraAspectMode.html" title="enum in com.microblink.view">CameraAspectMode</a> aspectMode)</pre>
<div class="block">Defines the aspect mode of camera preview.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>aspectMode</code> - desired aspect mode</dd>
</dl>
</li>
</ul>
<a name="setOnSizeChangedListener-com.microblink.view.OnSizeChangedListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnSizeChangedListener</h4>
<pre>@UiThread
public final void setOnSizeChangedListener(<a href="../../../com/microblink/view/OnSizeChangedListener.html" title="interface in com.microblink.view">OnSizeChangedListener</a> onSizeChangedListener)</pre>
<div class="block">Sets the listener that will be notified when size of child views changes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>onSizeChangedListener</code> - </dd>
</dl>
</li>
</ul>
<a name="setOnActivityFlipListener-com.microblink.view.OnActivityFlipListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnActivityFlipListener</h4>
<pre>@UiThread
public final void setOnActivityFlipListener(<a href="../../../com/microblink/view/OnActivityFlipListener.html" title="interface in com.microblink.view">OnActivityFlipListener</a> onActivityFlipListener)</pre>
<div class="block">Sets the listener that will be notified when activity flip event occurs.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>onActivityFlipListener</code> - Activity flip listener</dd>
</dl>
</li>
</ul>
<a name="setVideoResolutionPreset-com.microblink.hardware.camera.VideoResolutionPreset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVideoResolutionPreset</h4>
<pre>@UiThread
public final void setVideoResolutionPreset(<a href="../../../com/microblink/hardware/camera/VideoResolutionPreset.html" title="enum in com.microblink.hardware.camera">VideoResolutionPreset</a> preset)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>preset</code> - Sets the preset that will be used for choosing camera video resolution.</dd>
</dl>
</li>
</ul>
<a name="setForceUseLegacyCamera-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setForceUseLegacyCamera</h4>
<pre>@UiThread
public final void setForceUseLegacyCamera(boolean useLegacyCamera)</pre>
<div class="block">With this method you can request using legacy Camera API even on devices that natively support new Camera2 API.
Set this to true only if you have problems with camera management on Lollipop and newer devices.
Using legacy camera API is less efficient than new Camera2 API.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>useLegacyCamera</code> - If set to true, legacy Camera API will be used even on devices that support new Camera2 API.</dd>
</dl>
</li>
</ul>
<a name="setRequestAutofocusOnShakingStopInContinousAutofocusMode-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRequestAutofocusOnShakingStopInContinousAutofocusMode</h4>
<pre>@UiThread
public final void setRequestAutofocusOnShakingStopInContinousAutofocusMode(boolean requestAutofocusOnShakingStopInContinousAutofocusMode)</pre>
<div class="block">If device supports continous autofocus mode, enabling this feature will request normal autofocus every time device shaking
stops. By default, this is off, as is expected from device which supports continous autofocus to do this automatically. However,
some devices do not meet that expectation so this tweak can be used to force autofocus after device has stopped moving.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>requestAutofocusOnShakingStopInContinousAutofocusMode</code> - will autofocus be requested each time device shaking stops.</dd>
</dl>
</li>
</ul>
<a name="setPhotoMode-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPhotoMode</h4>
<pre>@UiThread
public final void setPhotoMode(boolean photoMode)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>photoMode</code> - If set to true, Photo camera manager will be used instead of Video camera manager. Thus, user will have to
take the picture before it goes to recognition. Default is false.</dd>
</dl>
</li>
</ul>
<a name="setOptimizeCameraForNearScan-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOptimizeCameraForNearScan</h4>
<pre>@UiThread
public final void setOptimizeCameraForNearScan(boolean nearScan)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nearScan</code> - Flag which indicates camera parameters should be optimized for near object scanning.
When camera parameters are optimized for near object scanning, macro focus mode will be
preferred over autofocus mode. Thus, camera will have easier time focusing on to near objects,
but might have harder time focusing on far objects. If you expect that most of your scans
will be performed by holding the device very near the object, turn on that parameter. By default,
this parameter is set to false.</dd>
</dl>
</li>
</ul>
<a name="setUseTextureViewForCameraDisplay-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseTextureViewForCameraDisplay</h4>
<pre>@UiThread
public final void setUseTextureViewForCameraDisplay(boolean forceTextureView)</pre>
<div class="block">In order to display camera preview, camera view must use one of two android's view's that are
capable of displaying camera preview video stream. When using Camera2 API on Lollipop devices
that support it, TextureView will always be used, regardless of this setting, however if legacy
camera API is used, SurfaceView will be preferred because it is faster. Sometimes, when you
create complex UI on top of camera screen, animations or UI may render incorrectly on some
devices when using SurfaceView for displaying camera preview. In that case, you can call this
method with parameter 'true' which will ensure TextureView to be used for displaying camera
preview rather than SurfaceView. TextureView is slower, but is more UI friendly so it allows
creation of more complex UI on top of camera preview. Please note that TextureView requires
hardware acceleration to be enabled in your app and on the device. TextureView requires API
level 14 (on older API levels, this setting will be ignored and SurfaceView will be used).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>forceTextureView</code> - Whether TextureView should be used even for legacy camera API.</dd>
</dl>
</li>
</ul>
<a name="getCameraEventsListener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCameraEventsListener</h4>
<pre>public <a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a> getCameraEventsListener()</pre>
<div class="block">Returns the current camera events listener.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the current camera events listener.</dd>
</dl>
</li>
</ul>
<a name="setCameraEventsListener-com.microblink.view.CameraEventsListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCameraEventsListener</h4>
<pre>@UiThread
public void setCameraEventsListener(<a href="../../../com/microblink/view/CameraEventsListener.html" title="interface in com.microblink.view">CameraEventsListener</a> cameraEventsListener)</pre>
<div class="block">Sets the listener that will receive various camera events, such as when camera preview has
started or camera initialization error has occurred.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cameraEventsListener</code> - </dd>
</dl>
</li>
</ul>
<a name="getHostScreenOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHostScreenOrientation</h4>
<pre>public int getHostScreenOrientation()</pre>
<div class="block">Returns the host's screen orientation as detected internally. Possible return codes are ActivityInfo.SCREEN_ORIENTATION_PORTRAIT,
ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE and ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the host's screen orientation</dd>
</dl>
</li>
</ul>
<a name="getVisiblePart--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVisiblePart</h4>
<pre>public android.graphics.RectF getVisiblePart()</pre>
<div class="block">Returns the rectangle that which part of camera frame is visible in view</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the rectangle that which part of camera frame is visible in view</dd>
</dl>
</li>
</ul>
<a name="createOrientationChangeListener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createOrientationChangeListener</h4>
<pre>protected OrientationChangeListener createOrientationChangeListener()</pre>
</li>
</ul>
<a name="createCameraViewEventsListener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCameraViewEventsListener</h4>
<pre>protected ICameraView.CameraViewEventListener createCameraViewEventsListener()</pre>
</li>
</ul>
<a name="requireAutofocusFeature--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>requireAutofocusFeature</h4>
<pre>protected abstract boolean requireAutofocusFeature()</pre>
<div class="block">If autofocus feature is required, please return true from this method. If
autofocus feature is not required, return false. If autofocus is required
and device does not support autofocus, error will be raised and
application will not start. If autofocus is not required, application
will work even on devices without autofocus.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if autofocus is required, otherwise false.</dd>
</dl>
</li>
</ul>
<a name="onActivityFlip--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onActivityFlip</h4>
<pre>protected abstract void onActivityFlip()</pre>
<div class="block">Called when activity is flipped - this event is not raised by OS so we have custom detection
of that state.</div>
</li>
</ul>
<a name="createCameraListener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCameraListener</h4>
<pre>protected abstract CameraListener createCameraListener()</pre>
<div class="block">ABSTRACT METHODS</div>
</li>
</ul>
<a name="isHostActivityOrientationOnSensor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isHostActivityOrientationOnSensor</h4>
<pre>protected boolean isHostActivityOrientationOnSensor()</pre>
</li>
</ul>
<a name="getCurrentOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentOrientation</h4>
<pre>public <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> getCurrentOrientation()</pre>
</li>
</ul>
<a name="isOrientationAllowed-com.microblink.hardware.orientation.Orientation-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOrientationAllowed</h4>
<pre>protected final boolean isOrientationAllowed(<a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> orientation)</pre>
</li>
</ul>
<a name="getInitialOrientation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInitialOrientation</h4>
<pre>public final <a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> getInitialOrientation()</pre>
<div class="block">Returns the initial orientation of rotatable view as set by setInitialOrientation.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the initial orientation of rotatable view as set by setInitialOrientation.</dd>
</dl>
</li>
</ul>
<a name="setInitialOrientation-com.microblink.hardware.orientation.Orientation-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInitialOrientation</h4>
<pre>@UiThread
@CallSuper
public void setInitialOrientation(<a href="../../../com/microblink/hardware/orientation/Orientation.html" title="enum in com.microblink.hardware.orientation">Orientation</a> initialOrientation)</pre>
<div class="block">Sets the initial orientation of rotatable view and recognizer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>initialOrientation</code> - </dd>
</dl>
</li>
</ul>
<a name="setOrientationAllowedListener-com.microblink.view.OrientationAllowedListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOrientationAllowedListener</h4>
<pre>@UiThread
public void setOrientationAllowedListener(<a href="../../../com/microblink/view/OrientationAllowedListener.html" title="interface in com.microblink.view">OrientationAllowedListener</a> orientationAllowedListener)</pre>
<div class="block">Sets the listener that will be asked if device orientation is allowed prior rotating
rotatable view and native recognizer to that orientation. If you do not set this
listener, recognition will be performed only in orientation defined by current activity's
orientation.</div>
</li>
</ul>
<a name="getOrientationChangeListener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOrientationChangeListener</h4>
<pre>public OrientationChangeListener getOrientationChangeListener()</pre>
<div class="block">Returns the current oreintation change listener</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
</dl>
</li>
</ul>
<a name="setOrientationChangeListener-OrientationChangeListener-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setOrientationChangeListener</h4>
<pre>public void setOrientationChangeListener(OrientationChangeListener orientationChangeListener)</pre>
<div class="block">Sets the orientation listener that will receive orientation change events that are already reported
to BaseCameraView. Orientation change events are independent of host activity's orientation settings.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>orientationChangeListener</code> - </dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../com/microblink/view/BaseCameraView.BaseCameraListener.html" title="class in com.microblink.view"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/microblink/view/BaseCameraView.html" target="_top">Frames</a></li>
<li><a href="BaseCameraView.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>