createSpace

abstract suspend fun createSpace(params: CreateSpaceParams): String

Create a space asynchronously.

Return

the spaceId of the created space


abstract suspend fun createSpace(name: String, topic: String?, avatarUri: Uri?, isPublic: Boolean, roomAliasLocalPart: String? = null): String

Just a shortcut for space creation for ease of use.