public static long getTimeoutAfter(Notification notification) {
        if (Build.VERSION.SDK_INT >= 26) {
            return notification.getTimeoutAfter();
        } else {
            return 0;
        }
    }
Returns the time at which this notification should be canceled by the system, if it's not
canceled already.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/NotificationCompat.java