I have a library made for Unity that needs to run some codes at Application's onCreate (Its callback interface must be added at application creation). The code must be entered by user's who are going to use my library.
My question is: Is it possible to run the user's C# code at the Application's oncreate?
Consider this code:
public class MyApplication extends android.app.Application {
@Override
public void onCreate() {
MyLibrary.setCallBack(new Callback {
@Override
void onSuccess() {
// Here some code must be entered by user
// Since library is for Unity it should be a c# code that user has written
}
});
}
}
How can user add c# code that can be entered there when app starts?
Thanks in advance.