static void get_runtime_types()
        {
            if (mono_unhandled_exception_method != null)
            {
                return;
            }

            mono_unhandled_exception_method = typeof(System.Diagnostics.Debugger).GetMethod(
                "Mono_UnhandledException", BindingFlags.NonPublic | BindingFlags.Static);
            if (mono_unhandled_exception_method == null)
            {
                AndroidEnvironment.FailFast("Cannot find System.Diagnostics.Debugger.Mono_UnhandledException");
            }

            exception_handler_method = typeof(AndroidEnvironment).GetMethod(
                "UnhandledException", BindingFlags.NonPublic | BindingFlags.Static);
            if (exception_handler_method == null)
            {
                AndroidEnvironment.FailFast("Cannot find AndroidEnvironment.UnhandledException");
            }

            wait_for_bridge_processing_method = typeof(JNIEnv).GetMethod("WaitForBridgeProcessing", BindingFlags.Public | BindingFlags.Static);
            if (wait_for_bridge_processing_method == null)
            {
                AndroidEnvironment.FailFast("Cannot find JNIEnv.WaitForBridgeProcessing");
            }
        }
Exemplo n.º 2
0
 public override void FailFast(string?message)
 {
     AndroidEnvironment.FailFast(message);
 }