public static void SetupCallbacks(SpeechUtteranceCallback speechUtteranceCancelled, SpeechUtteranceCallback speechUtteranceContinued, SpeechUtteranceCallback speechUtteranceFinished, SpeechUtteranceCallback speechUtterancePaused, SpeechUtteranceCallback speechUtteranceStarted, StringSpeechUtteranceCallback willSpeakPartOfString) { #if UNITY_IOS if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.tvOS) { _SetupCallbacks(speechUtteranceCancelled, speechUtteranceContinued, speechUtteranceFinished, speechUtterancePaused, speechUtteranceStarted, willSpeakPartOfString); } #endif }
private static extern void _SetupCallbacks(SpeechUtteranceCallback speechUtteranceCancelled, SpeechUtteranceCallback speechUtteranceContinued, SpeechUtteranceCallback speechUtteranceFinished, SpeechUtteranceCallback speechUtterancePaused, SpeechUtteranceCallback speechUtteranceStarted, StringSpeechUtteranceCallback willSpeakPartOfString);