snapkit

Creator: coderz1093

Last updated:

0 purchases

snapkit Image
snapkit Images

Languages

Categories

Add to Cart

Description:

snapkit

Snapkit #




A plugin that allows developers like you to integrate with Snapchat (using SnapKit) into your Flutter applications!
Getting Started #
Follow the Wiki for steps on how to get setup in an existing project or just copy the example project into a directory of your choosing and rename it.
Usage #
Create new Instance #
Snapkit snapkit = new Snapkit();
copied to clipboard
AuthState Stream #
snapkit.onAuthStateChanged.listen((SnapchatUser? user) {
// Do something with the returned SnapchatUser or null here
});
copied to clipboard
AuthState Class #
class MyAppState extends State<MyApp> implements SnapchatAuthStateListener {

snapkit.addAuthStateListener(this);

@override
void onLogin(SnapchatUser user) {
// Do something with the returned SnapchatUser here
}

@override
void onLogout() {
// Do something on logout
}

}
copied to clipboard
Login #
await snapkit.login();

// or

snapkit.login().then(user => {});
copied to clipboard
Logout #
await snapkit.logout();

// or

snapkit.logout().then(() => {});
copied to clipboard
Verify a Phone Number #
Returns a bool if Snapchat has verified the phone number, throws
an error if there was a problem. Always returns false on Android
snapkit.verifyPhoneNumber('US', '1231234567')
.then(isVerified {})
.catchError((error, StackTrace stacktrace) {})
copied to clipboard
Share to Snapchat #
Share to LIVE #
snapkit.share(SnapchatMediaType.NONE,
sticker: SnapchatSticker?,
caption: String?,
attachmentUrl: String?
);
copied to clipboard
Share with Background Photo #
snapkit.share(SnapchatMediaType.PHOTO,
image: ImageProvider,
sticker: SnapchatSticker?,
caption: String?,
attachmentUrl: String?
);
copied to clipboard
Share with Background Video #
Currently unavailable on Android
snapkit.share(SnapchatMediaType.VIDEO,
videoUrl: String,
sticker: SnapchatSticker?,
caption: String?,
attachmentUrl: String?
);
copied to clipboard
SnapchatSticker #
new SnapchatSticker(
image: ImageProvider
);
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.