Simultaneous Cursors Android
This is an example of real-time collaborative Simultaneous Cursors using Yorkie Android SDK.
MainActivity.kt
1package com.example.simultaneouscursors23import android.os.Bundle4import androidx.activity.ComponentActivity5import androidx.activity.compose.setContent6import androidx.activity.enableEdgeToEdge7import androidx.compose.foundation.layout.fillMaxSize8import androidx.compose.material.MaterialTheme9import androidx.compose.material.Surface10import androidx.compose.ui.Modifier11import androidx.navigation.compose.rememberNavController12import com.example.simultaneouscursors.ui.SimultaneousCursorsAppHost13import com.example.simultaneouscursors.ui.theme.SimultaneousCursorsTheme1415class MainActivity : ComponentActivity() {1617 override fun onCreate(savedInstanceState: Bundle?) {18 super.onCreate(savedInstanceState)19 enableEdgeToEdge()20 setContent {21 SimultaneousCursorsTheme {22 Surface(23 modifier = Modifier24 .fillMaxSize(),25 color = MaterialTheme.colors.background,26 ) {27 SimultaneousCursorsAppHost(navController = rememberNavController())28 }29 }30 }31 }32}