diff --git a/README.md b/README.md index b17c53f..eb50069 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ dependencyResolutionManagement { Step 2. Add dependency: ```gradle dependencies { - implementation 'com.github.yuriy-budiyev:code-scanner:2.2.0' + implementation 'com.github.yuriy-budiyev:code-scanner:2.3.0' } ``` Add camera permission and hardware feature to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23): diff --git a/build.gradle b/build.gradle index 673c4e2..7cac75b 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'com.android.library' apply plugin: 'maven-publish' ext { - libraryVersion = '2.2.0' + libraryVersion = '2.3.0' publishedGroupId = 'com.budiyev.android' } @@ -41,7 +41,7 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 32 - versionCode 60 + versionCode 61 versionName libraryVersion } diff --git a/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java b/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java index 3cbc7b0..cc564cc 100644 --- a/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java +++ b/src/main/java/com/budiyev/android/codescanner/CodeScannerView.java @@ -746,11 +746,21 @@ public boolean isFlashButtonVisible() { return mFlashButton.getVisibility() == VISIBLE; } + /** + * Auto focus button on icon + * + * @see #setAutoFocusButtonOnIcon + */ @NonNull public Drawable getAutoFocusButtonOnIcon() { return mAutoFocusButtonOnIcon; } + /** + * Auto focus button on icon + * + * @param icon Icon drawable + */ public void setAutoFocusButtonOnIcon(@NonNull final Drawable icon) { Objects.requireNonNull(icon); final boolean changed = icon != mAutoFocusButtonOnIcon; @@ -761,11 +771,21 @@ public void setAutoFocusButtonOnIcon(@NonNull final Drawable icon) { } } + /** + * Auto focus button off icon + * + * @see #setAutoFocusButtonOffIcon + */ @NonNull public Drawable getAutoFocusButtonOffIcon() { return mAutoFocusButtonOffIcon; } + /** + * Auto focus button off icon + * + * @param icon Icon drawable + */ public void setAutoFocusButtonOffIcon(@NonNull final Drawable icon) { Objects.requireNonNull(icon); final boolean changed = icon != mAutoFocusButtonOffIcon; @@ -881,11 +901,21 @@ public void setFlashButtonPaddingVertical(@Px final int padding) { } } + /** + * Flash button on icon + * + * @see #setFlashButtonOnIcon + */ @NonNull public Drawable getFlashButtonOnIcon() { return mFlashButtonOnIcon; } + /** + * Flash button on icon + * + * @param icon Icon drawable + */ public void setFlashButtonOnIcon(@NonNull final Drawable icon) { Objects.requireNonNull(icon); final boolean changed = icon != mFlashButtonOnIcon; @@ -896,11 +926,21 @@ public void setFlashButtonOnIcon(@NonNull final Drawable icon) { } } + /** + * Flash button off icon + * + * @see #setFlashButtonOffIcon + */ @NonNull public Drawable getFlashButtonOffIcon() { return mFlashButtonOffIcon; } + /** + * Flash button off icon + * + * @param icon Icon drawable + */ public void setFlashButtonOffIcon(@NonNull final Drawable icon) { Objects.requireNonNull(icon); final boolean changed = icon != mFlashButtonOffIcon;