@@ -488,16 +488,21 @@ This property is `False` by default.
488488
489489## AndroidEnableRestrictToAttributes
490490
491- A boolean property that determines whether types and members marked with
492- the Java annotation ` androidx.annotation.RestrictTo ` will be marked with an
493- ` [Obsolete] ` attribute in the C# binding.
491+ An enum-style property with valid values of ` obsolete ` and ` disable ` .
492+
493+ When set to ` obsolete ` , types and members that are marked with the Java annotation
494+ ` androidx.annotation.RestrictTo ` * or* are in non-exported Java packages will
495+ be marked with an ` [Obsolete] ` attribute in the C# binding.
494496
495497This ` [Obsolete] ` attribute has a descriptive message explaining that the
496498Java package owner considers the API to be "internal" and warns against its use.
497499
498500This attribute also has a custom warning code ` XAOBS001 ` so that it can be suppressed
499501independently of "normal" obsolete API.
500502
503+ When set to ` disable ` , API will be generated as normal with no additional
504+ attributes. (This is the same behavior as before .NET 8.)
505+
501506Adding ` [Obsolete] ` attributes instead of automatically removing the API was done to
502507preserve API compatibility with existing packages. If you would instead prefer to
503508* remove* members that have the ` @RestrictTo ` annotation * or* are in non-exported
@@ -510,7 +515,7 @@ this property to prevent these types from being bound:
510515
511516Support for this property was added in .NET 8.
512517
513- This property is ` True ` by default.
518+ This property is set to ` obsolete ` by default.
514519
515520## AndroidEnableSGenConcurrent
516521
0 commit comments