isSuccessful

open fun isSuccessful(): Boolean

Returns whether the operation has succeeded. If this method returns true, you can call getResult to obtain the result. Otherwise if it returns false, you can call getError to obtain the error.