📜  Unity android 插件回调 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:24.060000             🧑  作者: Mango

代码示例1
class AndroidPluginCallback : AndroidJavaProxy
    {
        public AndroidPluginCallback() : base("com.example.android.PluginCallback") { }

        public void onSuccess(string videoPath) {
            Debug.Log("ENTER callback onSuccess: " + videoPath);
        }
        public void onError(string errorMessage)
        {
            Debug.Log("ENTER callback onError: " + errorMessage);
        }
    }