Skip to content

Remove [Obsolete] InterfaceConsts classes #436

@jpobst

Description

@jpobst

Today when we encounter constants in Java interfaces that we have changed to C# Enums we generate the following:

[Register ("android/view/inputmethod/InputConnection", ApiSince = 3, DoNotGenerateAcw=true)]
public abstract class InputConnection : Java.Lang.Object {

	internal InputConnection ()
	{
	}

	// Metadata.xml XPath field reference: path="/api/package[@name='android.view.inputmethod']/interface[@name='InputConnection']/field[@name='GET_EXTRACTED_TEXT_MONITOR']"
	[Register ("GET_EXTRACTED_TEXT_MONITOR")]
	[Obsolete ("This constant will be removed in the future version. Use Android.Views.InputMethods.TextExtractFlags enum directly instead of this field.")]
	public const Android.Views.InputMethods.TextExtractFlags GetExtractedTextMonitor = (Android.Views.InputMethods.TextExtractFlags) 1;

	// Metadata.xml XPath field reference: path="/api/package[@name='android.view.inputmethod']/interface[@name='InputConnection']/field[@name='GET_TEXT_WITH_STYLES']"
	[Register ("GET_TEXT_WITH_STYLES")]
	[Obsolete ("This constant will be removed in the future version. Use Android.Views.InputMethods.GetTextFlags enum directly instead of this field.")]
	public const Android.Views.InputMethods.GetTextFlags GetTextWithStyles = (Android.Views.InputMethods.GetTextFlags) 1;

	// Metadata.xml XPath field reference: path="/api/package[@name='android.view.inputmethod']/interface[@name='InputConnection']/field[@name='INPUT_CONTENT_GRANT_READ_URI_PERMISSION']"
	[Register ("INPUT_CONTENT_GRANT_READ_URI_PERMISSION", ApiSince = 25)]
	[Obsolete ("This constant will be removed in the future version. Use Android.Views.InputMethods.InputContentFlags enum directly instead of this field.")]
	public const Android.Views.InputMethods.InputContentFlags InputContentGrantReadUriPermission = (Android.Views.InputMethods.InputContentFlags) 1;
}

[Register ("android/view/inputmethod/InputConnection", ApiSince = 3, DoNotGenerateAcw=true)]
[global::System.Obsolete ("Use the 'InputConnection' type. This type will be removed in a future release.")]
public abstract class InputConnectionConsts : InputConnection {

	private InputConnectionConsts ()
	{
	}
}

These have been marked as [Obsolete] for at least 3 years. Can we take the opportunity at our next major revision bump to remove them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions