singularity_flutter

Last updated:

0 purchases

singularity_flutter Image
singularity_flutter Images
Add to Cart

Description:

singularity flutter

Flutter wrapper for Singularity SDK #
You can integrate singularity sdk to easy implement login flow and wallet integration
SigularitySDKProtocol #
Implement this protocol to get callbacks

onGetSingularityUserInfo
This callback you get after successfully login. You will get the login user detail as json string in parameter.
You also get user detail anytime from shared preference using SingularityUser as key.

@override
onGetSingularityUserInfo(Map user) {

}
copied to clipboard
To get user detail from shared preference
final prefs = await SharedPreferences.getInstance();
final Map user = prefs.getString('SingularityUser');// for ios it return map for android it return Json String
copied to clipboard

onSingularityClose
This callback you get when you click on close icon or press back button.

@override
onSingularityClose() {

}
copied to clipboard

onSingularityLogout
This callback you get after successfully logout. It also delete user detail from shared preference.

@override
onSingularityLogout() {

}
copied to clipboard

onSingularityError
This callback you get when any error occured.

@override
onSingularityError(String msg) {

}
copied to clipboard
openLoginScreen #
You can call this function to start login flow or can open profile page
key - provide user key as string
singularityConfig - provide configurations details as map
_gamepay.openLoginScreen(key: <your_key>, singularityConfig: {<configuration_details>}); // pass'environment' to set environment 0 for test 1 for production

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.