Did Initialise

Learn how to get status of initialisation

DidInitialise event is triggered with the status of initialisation.

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

ReplayKitManager.DidInitialise += DidInitialise;

Initialisation Status

Status

Description

ReplayKitInitialisationState.Success

Successfully Initialised.

ReplayKitInitialisationState.Failed

Failed Initialising. This could be due to API unavailability or some other error.

Example

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;
}
}