Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <Windows.h> | |
| #include <opencv2/opencv.hpp> | |
| using namespace std; | |
| using namespace cv; | |
| Mat captureScreenMat(HWND hwnd) | |
| { | |
| HDC hwindowDC,hwindowCompatibleDC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencyResolutionManagement { | |
| ... | |
| repositories { | |
| ... | |
| maven { url 'https://jitpack.io' } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var otpView = findViewById<OTPView>(R.id.otpView) | |
| otpView.setOTPListener(object : OTPView.OTPListener { | |
| override fun onOTPCompleted(otp: String) { | |
| Toast.makeText(this@MainActivity, "OTP Completed $otp", Toast.LENGTH_LONG).show() | |
| if(otp == "123456"){ | |
| otpView.showSuccess() | |
| }else{ | |
| otpView.showFailure() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <com.noobcode.otpview.OTPView | |
| android:id="@+id/otpView" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_centerInParent="true" | |
| android:textColor="@color/white" | |
| app:borderThickness="2" | |
| app:otpLength="6" | |
| android:text="123456" | |
| app:otpLayoutColor="@color/teal_200" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencyResolutionManagement { | |
| repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | |
| repositories { | |
| google() | |
| mavenCentral() | |
| jcenter() // Warning: this repository is going to shut down soon | |
| //add jitpack here | |
| maven { url "https://jitpack.io" } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| allprojects { | |
| repositories { | |
| ... | |
| maven { url "https://jitpack.io" } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id 'com.android.application' | |
| id 'kotlin-android' | |
| id 'kotlin-kapt' | |
| } | |
| android { | |
| compileSdk 34 | |
| defaultConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adapter.updateData(/*updated list*/) |
NewerOlder