You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class TabNavigationActivity : ComponentActivity() { // initialization
lateinit var mapView: MapView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
MapKitFactory.setApiKey("02813d8c-6a80-4d82-8557-6b7db5e30c83")
MapKitFactory.initialize(this)
mapView = MapView(this)
data class CreateCityChooseScreen( // realization
val viewModel: CreateCityChooseViewModel
) : Screen {
override val key = uniqueScreenKey @composable
override fun Content() {
val context = LocalContext.current
Box(modifier = Modifier.fillMaxSize()) {
//MapKitFactory.setApiKey("02813d8c-6a80-4d82-8557-6b7db5e30c83")
// MapKitFactory.initialize(context)
val mapView = (context as TabNavigationActivity).mapView
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
class TabNavigationActivity : ComponentActivity() { // initialization
lateinit var mapView: MapView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
MapKitFactory.setApiKey("02813d8c-6a80-4d82-8557-6b7db5e30c83")
MapKitFactory.initialize(this)
mapView = MapView(this)
data class CreateCityChooseScreen( // realization
val viewModel: CreateCityChooseViewModel
) : Screen {
override val key = uniqueScreenKey
@composable
override fun Content() {
val context = LocalContext.current
Box(modifier = Modifier.fillMaxSize()) {
//MapKitFactory.setApiKey("02813d8c-6a80-4d82-8557-6b7db5e30c83")
// MapKitFactory.initialize(context)
val mapView = (context as TabNavigationActivity).mapView
Beta Was this translation helpful? Give feedback.
All reactions