Skip to content

Instantly share code, notes, and snippets.

import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import com.arellomobile.mvp.MvpDelegate
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.MapView
/**
* Для использования MapView
*
@rsajob
rsajob / 1_ScopeInitDelegate.kt
Last active January 10, 2019 14:08
Правильное управление Toothpick Scopes + Moxy
package com.rsajob.toothpick
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.Log
import toothpick.Toothpick
import toothpick.configuration.MultipleRootException
import kotlin.reflect.KProperty
/**
@rsajob
rsajob / ExampleFlowFragmant.kt
Created October 23, 2018 11:52
Dynamic scopes
private val scopeName: String
get() {
var scopeName = arguments?.getString(ARG_SCOPE_NAME)
if (scopeName == null) {
scopeName = [email protected]()
arguments?.putString(ARG_SCOPE_NAME, scopeName)
initScope(scopeName)
}
return scopeName