.aidl 文件中的方法是否有"@Deprecated"注释?



.aidl文件中的方法是否有相应的"@Deprecated"注释语法? 我想将一种方法标记为已弃用,添加一个新方法并促进使用该方法,同时仍保持向后兼容性。

您可以在下一个 URL 上找到示例:.aidl 中的@Deprecated

上述网址中的示例:

/** @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);

最新更新