Skip to content

Instantly share code, notes, and snippets.

@pahill
Created August 31, 2022 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pahill/847fef0752ea30f4e6b278b82a99797e to your computer and use it in GitHub Desktop.
Save pahill/847fef0752ea30f4e6b278b82a99797e to your computer and use it in GitHub Desktop.
import org.koin.android.ext.android.inject
...
class MainActivity : AppCompatActivity() {
private val searchBox: SearchBox by inject()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val tv: TextView = findViewById(R.id.text_view)
tv.text = searchBox
.findStaffMemberByName("Pamela Hill").toString()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment