Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: What the h#$% does this mean

  1. #1
    Junior Member
    Join Date
    Jul 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What the h#$% does this mean

    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.
    Last edited by nekoman; July 20th, 2018 at 02:50 PM. Reason: additional info.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: What the h#$% does this mean

    What language is the code written in? I don't recognize it as java.

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jul 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: What the h#$% does this mean

    https://dev.to/adammc331/android-fin...-tutorial-2835

    the code is from there.

    thanks for the tip. new here.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: What the h#$% does this mean

    Does the site say what language it is in? Is there a forum for that language?
    If you don't understand my answer, don't ignore it, ask a question.

Tags for this Thread