• Saul Wiggin

    Saul Wiggin

    1 year ago
    auth.signInWithEmailAndPassword(email, password)
            .addOnCompleteListener(this) { task ->
                if (task.isSuccessful) {
                    // Sign in success, update UI with the signed-in user's information
                    Log.d(TAG, "signInWithEmail:success")
                    val user = auth.currentUser
                    updateUI(user)
                } else {
                    // If sign in fails, display a message to the user.
                    Log.w(TAG, "signInWithEmail:failure", task.exception)
                    Toast.makeText(baseContext, "Authentication failed.",
                            Toast.LENGTH_SHORT).show()
                    updateUI(null)
                    // ...
                }
    
                // ...
           
    }
    Saul Wiggin
    1 replies
    Copy to Clipboard
  • Saul Wiggin

    Saul Wiggin

    1 year ago
    So I’m implementing auth in firebase. I was wondering if anyone knew what this task object is?
    Saul Wiggin
    Sajeel Akhter
    2 replies
    Copy to Clipboard
  • rtsketo

    rtsketo

    10 months ago
    https://pl.kotl.in/WJxo0DujU Is there a way to have the function
    pew()
    in class
    A
    (not as a companion object) and still be able to type
    b.pew().pew2()
    (not
    b.apply { pew().pew2() }
    )?
    rtsketo
    b
    2 replies
    Copy to Clipboard
  • m

    Magda Miu [MOD]

    7 months ago
    Hello everyone! I managed to publish an article about high performance with idiomatic Kotlin. I learned that nothing is more likely to drive users away than a poorly performing app. This article covers multiple topics around performance and how by using idiomatic Kotlin we could develop quality products that bring joy to our users. I hope it helps and brings you some inspiration. Happy Kotlin!https://magdamiu.medium.com/high-performance-with-idiomatic-kotlin-d52e099d0df0
    m
    d
    2 replies
    Copy to Clipboard