Android Guides | Samples

Android.Runtime.RegisterAttribute.DoNotGenerateAcw Property

Whether an Android Callable Wrapper should be generated for the type.


public Boolean DoNotGenerateAcw { get; set; }


If true, then Android Callable Wrappers will not be generated for the type; otherwise, Android Callable Wrappers will be generated (the default).


This property is only used for [Register] attributes placed on classes which inherit Object.

Set the DoNotGenerateAcw property when declaring a type that "aliases" a Java type -- that is, it has the same name as a Java type -- and an Android Callable Wrapper should not be generated.

C# Example

[Register ("java/util/ArrayList", DoNotGenerateAcw=true)]
class MyArrayList : Java.Lang.Object {
    // ...


Namespace: Android.Runtime
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: