Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Created July 23, 2020 12:43
Show Gist options
  • Save kingjinho/967ca4eed255b56440d48970e0dfbaf4 to your computer and use it in GitHub Desktop.
Save kingjinho/967ca4eed255b56440d48970e0dfbaf4 to your computer and use it in GitHub Desktop.
NotifcationCompat.kt
/**
* Compatibility library for NotificationManager with fallbacks for older platforms.
*
* <p>To use this class, call the static function {@link #from} to get a
* {@link NotificationManagerCompat} object, and then call one of its
* methods to post or cancel notifications.
*/
public final class NotificationManagerCompat {
private static final String TAG = "NotifManCompat";
private static final String CHECK_OP_NO_THROW = "checkOpNoThrow";
private static final String OP_POST_NOTIFICATION = "OP_POST_NOTIFICATION";
.
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment