'Is there "@Deprecated" annotation for methods in .aidl files?

Is there a corresponding "@Deprecated" annotation-syntax for methods in .aidl files? I want to mark a method as deprecated, add a new method and promote the use of that one instead, while still maintaining backwards compatibility.



Solution 1:[1]

You can find example on next URL: @Deprecated in .aidl

Example from mentioned URL:

/** @deprecated use {@link #enqueueNotificationWithTag} instead */
void enqueueNotification(String pkg, int id, in Notification notification, inout int[] idReceived);

/** @deprecated use {@link #cancelNotificationWithTag} instead */
void cancelNotification(String pkg, int id);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1