anurag chaurasia

anurag chaurasia

  • NA
  • 19
  • 1.1k

Interface Callback in Xamarin

Dec 10 2017 6:41 AM
I am trying to write a interface callback from a java library inside Xamarin using c#, Below is the code snippet,
  1. Connector.getInstance().login(email, new ILoginCallback()  
  2. { @Override public void onSuccess(long heloUserId)  
  3. /* call the required Activity for successful login */ }  
  4. @Override public void onPinverification()  
  5. /*call the Pin verification activity to validate pin */ }  
  6. @Override public void onFailure(String description)  
  7. /*show the toast msg for failure*/ }  
  8. });  
I am unable to do interface callback in c# which blocked me to get the success or failure result.
Any Help appreciated.