com.mattprecious.swirl.SwirlView Java Examples
The following examples show how to use
com.mattprecious.swirl.SwirlView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FingerprintUiHelper.java From SmartPack-Kernel-Manager with GNU General Public License v3.0 | 5 votes |
/** * Constructor for {@link FingerprintUiHelper}. This method is expected to be called from * only the {@link FingerprintUiHelperBuilder} class. */ private FingerprintUiHelper(FingerprintManagerCompat fingerprintManagerCompat, SwirlView swirlView, Callback callback) { mFingerprintManagerCompat = fingerprintManagerCompat; mSwirlView = swirlView; mCallback = callback; }
Example #2
Source File: FingerprintUiHelper.java From SmartPack-Kernel-Manager with GNU General Public License v3.0 | 5 votes |
public void startListening(FingerprintManagerCompat.CryptoObject cryptoObject) { if (!mListening) { mListening = true; mCancellationSignal = new CancellationSignal(); mSelfCancelled = false; mFingerprintManagerCompat .authenticate(cryptoObject, 0, mCancellationSignal, this, null); mSwirlView.setState(SwirlView.State.ON); } }
Example #3
Source File: FingerprintUiHelper.java From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 | 5 votes |
/** * Constructor for {@link FingerprintUiHelper}. This method is expected to be called from * only the {@link FingerprintUiHelperBuilder} class. */ private FingerprintUiHelper(FingerprintManagerCompat fingerprintManagerCompat, SwirlView swirlView, Callback callback) { mFingerprintManagerCompat = fingerprintManagerCompat; mSwirlView = swirlView; mCallback = callback; }
Example #4
Source File: FingerprintUiHelper.java From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 | 5 votes |
public void startListening(FingerprintManagerCompat.CryptoObject cryptoObject) { if (!mListening) { mListening = true; mCancellationSignal = new CancellationSignal(); mSelfCancelled = false; mFingerprintManagerCompat .authenticate(cryptoObject, 0, mCancellationSignal, this, null); mSwirlView.setState(SwirlView.State.ON); } }
Example #5
Source File: SampleActivity.java From swirl with Apache License 2.0 | 5 votes |
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId) { case R.id.off: swirlView.setState(SwirlView.State.OFF, animateView.isChecked()); break; case R.id.on: swirlView.setState(SwirlView.State.ON, animateView.isChecked()); break; case R.id.error: swirlView.setState(SwirlView.State.ERROR, animateView.isChecked()); break; default: throw new IllegalArgumentException("Unexpected checkedId: " + checkedId); } }
Example #6
Source File: FingerprintUiHelper.java From KernelAdiutor with GNU General Public License v3.0 | 5 votes |
/** * Constructor for {@link FingerprintUiHelper}. This method is expected to be called from * only the {@link FingerprintUiHelperBuilder} class. */ private FingerprintUiHelper(FingerprintManagerCompat fingerprintManagerCompat, SwirlView swirlView, Callback callback) { mFingerprintManagerCompat = fingerprintManagerCompat; mSwirlView = swirlView; mCallback = callback; }
Example #7
Source File: FingerprintUiHelper.java From KernelAdiutor with GNU General Public License v3.0 | 5 votes |
public void startListening(FingerprintManagerCompat.CryptoObject cryptoObject) { if (!mListening) { mListening = true; mCancellationSignal = new CancellationSignal(); mSelfCancelled = false; mFingerprintManagerCompat .authenticate(cryptoObject, 0, mCancellationSignal, this, null); mSwirlView.setState(SwirlView.State.ON); } }
Example #8
Source File: FingerprintUiHelper.java From SmartPack-Kernel-Manager with GNU General Public License v3.0 | 4 votes |
public FingerprintUiHelper build(SwirlView swirlView, Callback callback) { return new FingerprintUiHelper(mFingerprintManagerCompat, swirlView, callback); }
Example #9
Source File: FingerprintUiHelper.java From SmartPack-Kernel-Manager with GNU General Public License v3.0 | 4 votes |
@Override public void onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result) { mSwirlView.setState(SwirlView.State.OFF); mSwirlView.postDelayed(mCallback::onAuthenticated, 100); }
Example #10
Source File: FingerprintUiHelper.java From SmartPack-Kernel-Manager with GNU General Public License v3.0 | 4 votes |
private void showError() { mSwirlView.setState(SwirlView.State.ERROR); }
Example #11
Source File: FingerprintUiHelper.java From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 | 4 votes |
public FingerprintUiHelper build(SwirlView swirlView, Callback callback) { return new FingerprintUiHelper(mFingerprintManagerCompat, swirlView, callback); }
Example #12
Source File: FingerprintUiHelper.java From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 | 4 votes |
@Override public void onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result) { mSwirlView.setState(SwirlView.State.OFF); mSwirlView.postDelayed(mCallback::onAuthenticated, 100); }
Example #13
Source File: FingerprintUiHelper.java From MTweaks-KernelAdiutorMOD with GNU General Public License v3.0 | 4 votes |
private void showError() { mSwirlView.setState(SwirlView.State.ERROR); }
Example #14
Source File: FingerprintUiHelper.java From KernelAdiutor with GNU General Public License v3.0 | 4 votes |
public FingerprintUiHelper build(SwirlView swirlView, Callback callback) { return new FingerprintUiHelper(mFingerprintManagerCompat, swirlView, callback); }
Example #15
Source File: FingerprintUiHelper.java From KernelAdiutor with GNU General Public License v3.0 | 4 votes |
@Override public void onAuthenticationSucceeded(FingerprintManagerCompat.AuthenticationResult result) { mSwirlView.setState(SwirlView.State.OFF); mSwirlView.postDelayed(mCallback::onAuthenticated, 100); }
Example #16
Source File: FingerprintUiHelper.java From KernelAdiutor with GNU General Public License v3.0 | 4 votes |
private void showError() { mSwirlView.setState(SwirlView.State.ERROR); }