given the code:
class FingerprintController(...) : FingerprintManagerCompat.AuthenticationCallback() { /** * Helper variable to get the context from one of the views. The view used is arbitrary. */ private val context: Context get() = errorText.context private var cancellationSignal: CancellationSignal? = null private var selfCancelled = false private val isFingerprintAuthAvailable: Boolean get() = fingerprintManager.isHardwareDetected && fingerprintManager.hasEnrolledFingerprints() private val resetErrorTextRunnable: Runnable = Runnable { errorText.setTextColor(ContextCompat.getColor(context, R.color.hint_color)) errorText.text = context.getString(R.string.touch_sensor) icon.setImageResource(R.drawable.ic_fingerprint_white_24dp) } init { errorText.post(resetErrorTextRunnable) } interface Callback { } }
get() = errorText.context
WHAT DOES THIS MEAN!.
ive got no idea of why i keep finding unorthodox things in java examples.
its supposedly from a tutorial to use the fingerprint authentication.