Initialisation

First call to use SnapchatKit features

Initialise Snapchat Kit plugin by calling Initialise method. This initialises the plugin and returns a callback which has the success status.

SnapchatKitManager.Initialise(callback);

Examples

SnapchatKitManager.Initialise((bool success, string error) =>
{
string message = success ? "Successfully Initialised" : "Failed Initialising
SnapchatKit : " +error;
Debug.Log(message);
});
using VoxelBusters.SnapchatKit;
private void Initialise()
{
SnapchatKitManager.Initialise(OnInitialiseComplete);
// Another way to pass callback
/*
SnapchatKitManager.Initialise((bool success, string error) =>
{
string message = success ? "Successfully Initialised" : "Failed Initialising
SnapchatKit : " +error;
Debug.Log(message);
});*/
}
private void OnInitialiseComplete(bool success, string error)
{
string message = success ? "Successfully Initialised" : "Failed Initialising
SnapchatKit : " +error;
Debug.Log(message);
}