Initialisation

Initial to be made to make plugin function properly

Initialise Replay Kit plugin by calling Initialise method. This initialises the plugin and DidInitialise event is triggered with the status.

ReplayKitManager.Initialise();

Make sure you register to DidInitialise event ahead so that you get the required callbacks.

void OnEnable()
{
ReplayKitManager.DidInitialise += DidInitialise;
}
void OnDisable()
{
ReplayKitManager.DidInitialise -= DidInitialise;
}
private void DidInitialise(ReplayKitInitialisationState state, string message)
{
Debug.Log("Received Event Callback : DidInitialise [State:" + state.ToString() + " " + "Message:" + message);
switch (state)
{
case ReplayKitInitialisationState.Success:
Debug.Log("ReplayKitManager.DidInitialise : Initialisation Success");
break;
case ReplayKitInitialisationState.Failed:
Debug.Log("ReplayKitManager.DidInitialise : Initialisation Failed with message["+message+"]");
break;
default:
Debug.Log("Unknown State");
break;
}
}