-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some classes need to be extended in some cases, however currently it is not possible #75
Comments
There are two possible alternatives to create some classes that needs the behavior requested:
|
Using latest version of JNetReflector it is not possible to obtain the expected result. "ClassesWithCallbacks": [
{
"ClassName": "android.app.Activity",
"Patterns": [
"on*"
]
}
], fails the generation with:
|
Extending the list of classes under "ClassesWithCallbacks": [
{
"ClassName": "android.app.Activity",
"Patterns": [
"on*"
]
},
{
"ClassName": "android.app.NativeActivity",
"Patterns": [
"on*"
]
},
{
"ClassName": "android.app.ListActivity",
"Patterns": [
"on*"
]
},
{
"ClassName": "android.app.ExpandableListActivity",
"Patterns": [
"on*"
]
},
{
"ClassName": "android.app.AliasActivity",
"Patterns": [
"on*"
]
},
{
"ClassName": "android.app.ActivityGroup",
"Patterns": [
"on*"
]
}
], however only |
UPDATE: maybe a better regex is |
Last generation reports in the log:
The classes
shall be raised up to 21. The other classes ( We prefer to have |
Not applicable due to #104 (comment) |
The following code
netdroid/src/net/Netdroid/Generated/Android/App/Activity.cs
Line 1516 in 84d9807
The previous overrides
onCreate
and executes some extra code. So, from the point of view of .NET code in Netdroid, the 'OnCreate' shall be managed like an event of a listener. In this way the .NET code can react and execute the needed code likenetdroid/src/net/Netdroid/Generated/Android/App/Activity.cs
Line 1957 in 84d9807
The text was updated successfully, but these errors were encountered: