methodsdeprecatedaidl

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

  • 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);