Enigmatic-Smile / fidel-android

FIDEL Android SDK
MIT License
5 stars 1 forks source link

What is Present the activity? #4

Closed amigax closed 3 years ago

amigax commented 3 years ago

In the docs I see: Present the activity. I dont know what activity this is though? Fidel.present(YourActivityClass.this); where does YourActivityClass come from?

ccorneliu commented 3 years ago

Hi @amigax !

Sorry for the unclear documentation. We'll work on improving it. The present function just takes an Activity as a parameter:

public static void present(Activity startingActivity)

We use that startingActivity to call startActivityForResult and present our UI which allows the user to enter the card information. This is the activity that will also receive the result of the card linking process via the onActivityResult function. Please let me know, if this is clear, or if there is anything that I can clarify related to showing our card information activity.

Thanks! Cornel

amigax commented 3 years ago

thank you!..