Kotlin Java interop issue

Hi,

we are trying to Access Login API from Android Java using Kotlin SDK,
below is the code snippet , need help in creating a return function of type continuation.

private void login() {
LoginKt.login(
rocketChatClient,
“username”,
“password”,
“pin”,
continuation()
);
}

private kotlin.coroutines.experimental.Continuation<? super Token> continuation() {

-------- HERE-------
}

Here i need help in creating Builder in java
Any help is appreciated.

private void rocketChatClientInstance() {
    rocketChatClient = RocketChatClient.Companion.create(builder());
}

private Function1<? super RocketChatClient.Builder,Unit> builder() {

-------- BUILDER------------
}

Regards
Raj

I’ve moved to community support.

You were under Rocket.Chat Apps. Which are for extendible pieces inside the server not the mobile apps :slight_smile:

@rafael.kellermann and team, Appreciate your response/feedback for the above query.

Regards,
Mayur M