Skip to main content

Managing teams and conversations

The SDK provides access to teams and conversations through the WireApplicationManager, available after initializing the WireAppSDK

val applicationManager = wireAppSdk.getApplicationManager()

// Get all teams the application has been invited to
val teams = applicationManager.getTeams()
teams.forEach { teamId ->
println("Team: $teamId")
}

// Get all conversations the application has access to
val conversations = applicationManager.getConversations()
conversations.forEach { conversation ->
println("Conversation: ${conversation.id} in team: ${conversation.teamId}")
}