public static boolean getLocalOnly(Notification notification) {
        if (Build.VERSION.SDK_INT >= 20) {
            return (notification.flags & Notification.FLAG_LOCAL_ONLY) != 0;
        } else if (Build.VERSION.SDK_INT >= 19) {
            return notification.extras.getBoolean(NotificationCompatExtras.EXTRA_LOCAL_ONLY);
        } else if (Build.VERSION.SDK_INT >= 16) {
            return NotificationCompatJellybean.getExtras(notification).getBoolean(
                    NotificationCompatExtras.EXTRA_LOCAL_ONLY);
        } else {
            return false;
        }
    }
Get whether or not this notification is only relevant to the current device.

<p>Some notifications can be bridged to other devices for remote display.
If this hint is set, it is recommend that this notification not be bridged.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/NotificationCompat.java