According to the docs, you need to create a class which implements the ResultCallback interface.
Have a look to my xcamera widget to see an example of how to do it:
https://github.com/kivy-garden/garden.xcamera/blob/master/android_api.py
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks. So to clarify I would do
class LoadPlayerScoreCallback(PythonJavaClass):
__javainterfaces__ = ('com.google.android.gms.common.api.ResultCallback',)
@java_method('(Lcom/Google/.../Leaderboards$LoadPlayerScoreResult;)')
def onResult(self, result):
#do stuff
Is my __javainterfaces__ correct? Is there somewhere other than the java_method that I need to specify the LoadPlayerScoreResult?
ResultCallback<TurnBasedMultiplayer.InitiateMatchResult> cb = new ResultCallback<TurnBasedMultiplayer.InitiateMatchResult>() {
@Override
public void onResult(TurnBasedMultiplayer.InitiateMatchResult result) {
processResult(result);
}
};
Games.TurnBasedMultiplayer.createMatch(mGoogleApiClient, tbmc).setResultCallback(cb);
I am sorry I cannot be of much help,I never had to do something like this. I suggest to decompile the correct java file to smali, so that you can see what is the correct signature
--