Skip to the content.

//[](../../../index.html)/[pro.streem.sdk](../index.html)/[Streem](index.html)/[getExitCode](get-exit-code.html)

getExitCode

[androidJvm]
abstract fun getExitCode(requestCode: Int, resultCode: Int, data: Intent?): String?

Returns the exit code from the Streem experience if requestCode represents an Activity that was started by the Streem SDK. Otherwise returns null. This method should be called from Activity.onActivityResult or Fragment.onActivityResult. It should only be called when resultCode == RESULT_OK in order to avoid calling Streem.get() before the Streem SDK has been initialized.

This can be EXIT_CODE_HELP or EXIT_CODE_EXIT if the user exited via one of the toolbar buttons.