Created
April 23, 2020 16:22
-
-
Save felansu/734207a307c3b4dd1827777d5acce374 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.cloq.combateAFraude; | |
import android.app.Activity; | |
import android.content.Intent; | |
import com.combateafraude.onboarding.OnboardingResult; | |
import org.jetbrains.annotations.Nullable; | |
import static br.com.cloq.combateAFraude.CombateAFraudeModule.REQUEST_CODE; | |
public class CombateAFraudeActivity extends Activity { | |
@Override | |
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { | |
if (requestCode == REQUEST_CODE) { | |
if (resultCode == 200 && data != null) { | |
OnboardingResult mOnboardingResult = (OnboardingResult) data.getSerializableExtra(OnboardingResult.PARAMETER_NAME); | |
System.out.println(mOnboardingResult.getSdkFailure()); | |
System.out.println(mOnboardingResult); | |
// check the mOnboardingResult.getSDKFailure() here to know for which reason the SDK had finished. | |
} else { | |
// the user closed the activity | |
} | |
} | |
super.onActivityResult(requestCode, resultCode, data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment